![]() |
Rise
The Vieneo Province
|
Callback struct used to notify when a connection has changed state. More...
#include <steamnetworkingfakeip.h>
Public Types | |
| enum | { k_iCallback = k_iSteamNetworkingSocketsCallbacks + 3 } |
| enum | { k_nMaxReturnPorts = 8 } |
Public Attributes | |
| EResult | m_eResult |
| SteamNetworkingIdentity | m_identity |
| uint32 | m_unIP |
| uint16 | m_unPorts [k_nMaxReturnPorts] |
Callback struct used to notify when a connection has changed state.
A struct used to describe a "fake IP" we have been assigned to use as an identifier. This callback is posted when ISteamNetworkingSoockets::BeginAsyncRequestFakeIP completes. See also ISteamNetworkingSockets::GetFakeIP
Definition at line 93 of file steamnetworkingfakeip.h.
| anonymous enum |
| Enumerator | |
|---|---|
| k_iCallback | |
Definition at line 95 of file steamnetworkingfakeip.h.
| anonymous enum |
Port number(s) assigned to us. Only the first entries will contain nonzero values. Entries corresponding to ports beyond what was allocated for you will be zero.
(NOTE: At the time of this writing, the maximum number of ports you may request is 4.)
| Enumerator | |
|---|---|
| k_nMaxReturnPorts | |
Definition at line 129 of file steamnetworkingfakeip.h.
| EResult SteamNetworkingFakeIPResult_t::m_eResult |
Status/result of the allocation request. Possible failure values are:
Note that, with the exception of k_EResultBusy (if you are polling), it is highly recommended to treat all failures as fatal.
Definition at line 106 of file steamnetworkingfakeip.h.
| SteamNetworkingIdentity SteamNetworkingFakeIPResult_t::m_identity |
Local identity of the ISteamNetworkingSockets object that made this request and is assigned the IP. This is needed in the callback in the case where there are multiple ISteamNetworkingSockets objects. (E.g. one for the user, and another for the local gameserver).
Definition at line 112 of file steamnetworkingfakeip.h.
| uint32 SteamNetworkingFakeIPResult_t::m_unIP |
Fake IPv4 IP address that we have been assigned. NOTE: this IP address is not exclusively ours! Steam tries to avoid sharing IP addresses, but this may not always be possible. The IP address may be currently in use by another host, but with different port(s). The exact same IP:port address may have been used previously. Steam tries to avoid reusing ports until they have not been in use for some time, but this may not always be possible.
Definition at line 121 of file steamnetworkingfakeip.h.
| uint16 SteamNetworkingFakeIPResult_t::m_unPorts[k_nMaxReturnPorts] |
Definition at line 130 of file steamnetworkingfakeip.h.