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

#include <isteamnetworkingmessages.h>

Collaboration diagram for SteamNetworkingMessagesSessionFailed_t:
[legend]

Public Types

enum  { k_iCallback = k_iSteamNetworkingMessagesCallbacks + 2 }

Public Attributes

SteamNetConnectionInfo_t m_info

Detailed Description

Posted when we fail to establish a connection, or we detect that communications have been disrupted it an unusual way. There is no notification when a peer proactively closes the session. ("Closed by peer" is not a concept of UDP-style communications, and SteamNetworkingMessages is primarily intended to make porting UDP code easy.)

Remember: callbacks are asynchronous. See notes on SendMessageToUser, and k_nSteamNetworkingSend_AutoRestartBrokenSession in particular.

Also, if a session times out due to inactivity, no callbacks will be posted. The only way to detect that this is happening is that querying the session state may return none, connecting, and findingroute again.

Definition at line 153 of file isteamnetworkingmessages.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
k_iCallback 

Definition at line 155 of file isteamnetworkingmessages.h.

Member Data Documentation

◆ m_info

SteamNetConnectionInfo_t SteamNetworkingMessagesSessionFailed_t::m_info

Detailed info about the session that failed. SteamNetConnectionInfo_t::m_identityRemote indicates who this session was with.

Definition at line 160 of file isteamnetworkingmessages.h.


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