swiftlys2/docs/api/releases/features/ai/
API Reference › SteamAPI

SteamNetworkingFakeIPResult_t

Struct
Namespace: SwiftlyS2.Shared.SteamAPI · Assembly: SwiftlyS2.CS2.dll
public struct SteamNetworkingFakeIPResult_t

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

View source

Fields

k_iCallback

public const int k_iCallback = 1223
Field Value

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.

public EResult m_eResult
Field Value

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).

public SteamNetworkingIdentity m_identity

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.

public uint m_unIP
Field Value

m_unPorts

public ushort* m_unPorts
Field Value