Rise
The Vieneo Province
Loading...
Searching...
No Matches
SteamNetworkingFakeIPResult_t Struct Reference

Callback struct used to notify when a connection has changed state. More...

#include <steamnetworkingfakeip.h>

Collaboration diagram for SteamNetworkingFakeIPResult_t:
[legend]

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]

Detailed Description

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.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
k_iCallback 

Definition at line 95 of file steamnetworkingfakeip.h.

◆ anonymous enum

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.

Member Data Documentation

◆ m_eResult

EResult SteamNetworkingFakeIPResult_t::m_eResult

Status/result of the allocation request. Possible failure values are:

  • k_EResultBusy - you called GetFakeIP but the request has not completed.
  • k_EResultInvalidParam - you called GetFakeIP with an invalid port index
  • k_EResultLimitExceeded - You asked for too many ports, or made an additional request after one had already succeeded
  • k_EResultNoMatch - GetFakeIP was called, but no request has been made

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.

◆ m_identity

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.

◆ m_unIP

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.

◆ m_unPorts

uint16 SteamNetworkingFakeIPResult_t::m_unPorts[k_nMaxReturnPorts]

Definition at line 130 of file steamnetworkingfakeip.h.


The documentation for this struct was generated from the following file: