#[repr(C, packed(1))]pub struct SteamNetworkingMessagesSessionFailed_t {
pub m_info: SteamNetConnectionInfo_t,
}
Expand 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.
Fields§
§m_info: SteamNetConnectionInfo_t
Detailed info about the session that failed. SteamNetConnectionInfo_t::m_identityRemote indicates who this session was with.
Trait Implementations§
source§impl Clone for SteamNetworkingMessagesSessionFailed_t
impl Clone for SteamNetworkingMessagesSessionFailed_t
source§fn clone(&self) -> SteamNetworkingMessagesSessionFailed_t
fn clone(&self) -> SteamNetworkingMessagesSessionFailed_t
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more