![]() |
Rise
The Vieneo Province
|
#include <steamnetworkingfakeip.h>
Public Member Functions | |
| virtual void | DestroyFakeUDPPort ()=0 |
| virtual EResult | SendMessageToFakeIP (const SteamNetworkingIPAddr &remoteAddress, const void *pData, uint32 cbData, int nSendFlags)=0 |
| virtual int | ReceiveMessages (SteamNetworkingMessage_t **ppOutMessages, int nMaxMessages)=0 |
| virtual void | ScheduleCleanup (const SteamNetworkingIPAddr &remoteAddress)=0 |
Acts like a UDP port, sending and receiving datagrams addressed using FakeIP addresses.
See: ISteamNetworkingSockets::CreateFakeUDPPort
Definition at line 29 of file steamnetworkingfakeip.h.
|
pure virtual |
Destroy the object and cleanup any internal connections. Note that this function call is not threadsafe with respect to any other method of this interface. (However, in general all other operations are threadsafe with respect to each other.)
|
pure virtual |
Receive messages on the port.
Returns the number of messages returned into your array, up to nMaxMessages.
SteamNetworkingMessage_t::m_identity in the returned message(s) will always contain a FakeIP. See ISteamNetworkingUtils::GetRealIdentityForFakeIP.
|
pure virtual |
Schedule the internal connection for a given peer to be cleaned up in a few seconds.
Idle connections automatically time out, and so this is not strictly necessary, but if you have reason to believe that you are done talking to a given peer for a while, you can call this to speed up the timeout. If any remaining packets are sent or received from the peer, the cleanup is canceled and the usual timeout value is restored. Thus you will usually call this immediately after sending or receiving application-layer "close connection" packets.
|
pure virtual |
Send a datagram to the specified FakeIP.
See ISteamNetworkingSockets::SendMessageToConnection for the meaning of nSendFlags and possible return codes.
Notes: