![]() |
Rise
The Vieneo Province
|
Callback struct used to notify when a connection has changed state. More...
#include <isteamnetworkingsockets.h>
Public Types | |
| enum | { k_iCallback = k_iSteamNetworkingSocketsCallbacks + 1 } |
Public Attributes | |
| HSteamNetConnection | m_hConn |
| Connection handle. | |
| SteamNetConnectionInfo_t | m_info |
| Full connection info. | |
| ESteamNetworkingConnectionState | m_eOldState |
| Previous state. (Current state is in m_info.m_eState). | |
Callback struct used to notify when a connection has changed state.
This callback is posted whenever a connection is created, destroyed, or changes state. The m_info field will contain a complete description of the connection at the time the change occurred and the callback was posted. In particular, m_eState will have the new connection state.
You will usually need to listen for this callback to know when:
Remember that callbacks are posted to a queue, and networking connections can change at any time. It is possible that the connection has already changed state by the time you process this callback.
Also note that callbacks will be posted when connections are created and destroyed by your own API calls.
Definition at line 1019 of file isteamnetworkingsockets.h.
| anonymous enum |
| Enumerator | |
|---|---|
| k_iCallback | |
Definition at line 1021 of file isteamnetworkingsockets.h.
| ESteamNetworkingConnectionState SteamNetConnectionStatusChangedCallback_t::m_eOldState |
Previous state. (Current state is in m_info.m_eState).
Definition at line 1030 of file isteamnetworkingsockets.h.
| HSteamNetConnection SteamNetConnectionStatusChangedCallback_t::m_hConn |
Connection handle.
Definition at line 1024 of file isteamnetworkingsockets.h.
| SteamNetConnectionInfo_t SteamNetConnectionStatusChangedCallback_t::m_info |
Full connection info.
Definition at line 1027 of file isteamnetworkingsockets.h.