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

SteamNetworkingMessagesSessionFailed_t

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

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.

View source

Fields

k_iCallback

public const int k_iCallback = 1252
Field Value

m_info

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

public SteamNetConnectionInfo_t m_info