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

SteamNetConnectionInfo_t

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

Describe the state of a connection.

View source

Properties

m_szConnectionDescription

public string m_szConnectionDescription { get; set; }
Property Value

m_szEndDebug

public string m_szEndDebug { get; set; }
Property Value

Fields

m__pad1

public ushort m__pad1
Field Value

m_addrRemote

Remote address. Might be all 0's if we don't know it, or if this is N/A. (E.g. Basically everything except direct UDP connection.)

public SteamNetworkingIPAddr m_addrRemote

m_eEndReason

Basic cause of the connection termination or problem. See ESteamNetConnectionEnd for the values used

public int m_eEndReason
Field Value

m_eState

High level state of the connection

public ESteamNetworkingConnectionState m_eState

m_hListenSocket

Handle to listen socket this was connected on, or k_HSteamListenSocket_Invalid if we initiated the connection

public HSteamListenSocket m_hListenSocket

m_idPOPRelay

What relay are we using to communicate with the remote host? (0 if not applicable.)

public SteamNetworkingPOPID m_idPOPRelay

m_idPOPRemote

What data center is the remote host in? (0 if we don't know.)

public SteamNetworkingPOPID m_idPOPRemote

m_identityRemote

Who is on the other end? Depending on the connection type and phase of the connection, we might not know

public SteamNetworkingIdentity m_identityRemote

m_nFlags

Misc flags. Bitmask of k_nSteamNetworkConnectionInfoFlags_Xxxx

public int m_nFlags
Field Value

m_nUserData

Arbitrary user data set by the local application code

public long m_nUserData
Field Value

reserved

Internal stuff, room to change API easily

public uint* reserved
Field Value