SteamNetworkingMessages
Swift
public struct SteamNetworkingMessages: Sendable
Steamworks ISteamNetworkingMessages
Access via networkingMessages
through a SteamAPI
or SteamGameServerAPI
instance.
Topics
func acceptSessionWithUser(identityRemote: SteamNetworkingIdentity) -> Bool
func acceptSessionWithUser(identityRemote: SteamNetworkingIdentity) -> Bool
Steamworks ISteamNetworkingMessages::AcceptSessionWithUser()
Declaration
Swift
@discardableResult
public func acceptSessionWithUser(identityRemote: SteamNetworkingIdentity)
-> Bool
func closeChannelWithUser(identityRemote: SteamNetworkingIdentity, localChannel: Int) -> Bool
func closeChannelWithUser(identityRemote: SteamNetworkingIdentity, localChannel: Int) -> Bool
Steamworks ISteamNetworkingMessages::CloseChannelWithUser()
Declaration
Swift
@discardableResult
public func closeChannelWithUser(
identityRemote: SteamNetworkingIdentity, localChannel: Int
) -> Bool
func closeSessionWithUser(identityRemote: SteamNetworkingIdentity) -> Bool
func closeSessionWithUser(identityRemote: SteamNetworkingIdentity) -> Bool
Steamworks ISteamNetworkingMessages::CloseSessionWithUser()
Declaration
Swift
@discardableResult
public func closeSessionWithUser(identityRemote: SteamNetworkingIdentity)
-> Bool
func getSessionConnectionInfo(identityRemote: SteamNetworkingIdentity) -> (rc: SteamNetworkingConnectionState, connectionInfo: SteamNetConnectionInfo, quickStatus: SteamNetConnectionRealTimeStatus)
func getSessionConnectionInfo(identityRemote: SteamNetworkingIdentity) -> (rc: SteamNetworkingConnectionState, connectionInfo: SteamNetConnectionInfo, quickStatus: SteamNetConnectionRealTimeStatus)
Steamworks ISteamNetworkingMessages::GetSessionConnectionInfo()
Declaration
Swift
public func getSessionConnectionInfo(identityRemote: SteamNetworkingIdentity)
-> (
rc: SteamNetworkingConnectionState,
connectionInfo: SteamNetConnectionInfo,
quickStatus: SteamNetConnectionRealTimeStatus
)
func receiveMessagesOnChannel(localChannel: Int, maxMessages: Int) -> (rc: Int, messages: [SteamNetworkingMessage])
func receiveMessagesOnChannel(localChannel: Int, maxMessages: Int) -> (rc: Int, messages: [SteamNetworkingMessage])
Steamworks ISteamNetworkingMessages::ReceiveMessagesOnChannel()
Declaration
Swift
public func receiveMessagesOnChannel(localChannel: Int, maxMessages: Int) -> (
rc: Int, messages: [SteamNetworkingMessage]
)
func sendMessageToUser(identityRemote: SteamNetworkingIdentity, data: UnsafeRawPointer, dataSize: Int, sendFlags: SteamNetworkingSendFlags, remoteChannel: Int) -> Result
func sendMessageToUser(identityRemote: SteamNetworkingIdentity, data: UnsafeRawPointer, dataSize: Int, sendFlags: SteamNetworkingSendFlags, remoteChannel: Int) -> Result
Steamworks ISteamNetworkingMessages::SendMessageToUser()
Declaration
Swift
public func sendMessageToUser(
identityRemote: SteamNetworkingIdentity, data: UnsafeRawPointer,
dataSize: Int, sendFlags: SteamNetworkingSendFlags, remoteChannel: Int
) -> Result