SteamNetworkingFakeUDPPort
Swift
public final class SteamNetworkingFakeUDPPort: Sendable
Steamworks ISteamNetworkingFakeUDPPort
Access via createFakeUDPPort(fakeServerPort:)
.
Topics
func destroyFakeUDPPort()
func destroyFakeUDPPort()
Steamworks ISteamNetworkingFakeUDPPort::DestroyFakeUDPPort()
Declaration
Swift
public func destroyFakeUDPPort()
func receiveMessages(maxMessages: Int) -> (rc: Int, messages: [SteamNetworkingMessage])
func receiveMessages(maxMessages: Int) -> (rc: Int, messages: [SteamNetworkingMessage])
Steamworks ISteamNetworkingFakeUDPPort::ReceiveMessages()
Declaration
Swift
public func receiveMessages(maxMessages: Int) -> (
rc: Int, messages: [SteamNetworkingMessage]
)
func scheduleCleanup(address: SteamNetworkingIPAddr)
func scheduleCleanup(address: SteamNetworkingIPAddr)
Steamworks ISteamNetworkingFakeUDPPort::ScheduleCleanup()
Declaration
Swift
public func scheduleCleanup(address: SteamNetworkingIPAddr)
func sendMessageToFakeIP(address: SteamNetworkingIPAddr, data: UnsafeRawPointer, dataSize: Int, sendFlags: SteamNetworkingSendFlags) -> Result
func sendMessageToFakeIP(address: SteamNetworkingIPAddr, data: UnsafeRawPointer, dataSize: Int, sendFlags: SteamNetworkingSendFlags) -> Result
Steamworks ISteamNetworkingFakeUDPPort::SendMessageToFakeIP()
Declaration
Swift
public func sendMessageToFakeIP(
address: SteamNetworkingIPAddr, data: UnsafeRawPointer, dataSize: Int,
sendFlags: SteamNetworkingSendFlags
) -> Result