SteamNetConnectionInfo_t

Describe the state of a connection.

Members

Variables

m__pad1
ushort m__pad1;
Undocumented in source.
m_addrRemote
SteamNetworkingIPAddr 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.)

m_eEndReason
int m_eEndReason;

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

m_eState
ESteamNetworkingConnectionState m_eState;

High level state of the connection

m_hListenSocket
HSteamListenSocket m_hListenSocket;

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

m_idPOPRelay
SteamNetworkingPOPID m_idPOPRelay;

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

m_idPOPRemote
SteamNetworkingPOPID m_idPOPRemote;

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

m_identityRemote
SteamNetworkingIdentity m_identityRemote;

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

m_nFlags
int m_nFlags;

Misc flags. Bitmask of k_nSteamNetworkConnectionInfoFlags_Xxxx

m_nUserData
long m_nUserData;

Arbitrary user data set by the local application code

m_szConnectionDescription
char[k_cchSteamNetworkingMaxConnectionDescription] m_szConnectionDescription;

Debug description. This includes the internal connection ID, connection type (and peer information), and any name given to the connection by the app. This string is used in various internal logging messages.

m_szEndDebug
char[k_cchSteamNetworkingMaxConnectionCloseReason] m_szEndDebug;

Human-readable, but non-localized explanation for connection termination or problem. This is intended for debugging / diagnostic purposes only, not to display to users. It might have some details specific to the issue.

reserved
uint[63] reserved;

Internal stuff, room to change API easily

Meta