Struct gns_sys::SteamNetConnectionInfo_t
source · [−]#[repr(C, packed(4))]pub struct SteamNetConnectionInfo_t {Show 13 fields
pub m_identityRemote: SteamNetworkingIdentity,
pub m_nUserData: int64,
pub m_hListenSocket: HSteamListenSocket,
pub m_addrRemote: SteamNetworkingIPAddr,
pub m__pad1: uint16,
pub m_idPOPRemote: SteamNetworkingPOPID,
pub m_idPOPRelay: SteamNetworkingPOPID,
pub m_eState: ESteamNetworkingConnectionState,
pub m_eEndReason: c_int,
pub m_szEndDebug: [c_char; 128],
pub m_szConnectionDescription: [c_char; 128],
pub m_nFlags: c_int,
pub reserved: [uint32; 63],
}
Expand description
Describe the state of a connection.
Fields
m_identityRemote: SteamNetworkingIdentity
Who is on the other end? Depending on the connection type and phase of the connection, we might not know
m_nUserData: int64
Arbitrary user data set by the local application code
m_hListenSocket: HSteamListenSocket
Handle to listen socket this was connected on, or k_HSteamListenSocket_Invalid if we initiated the connection
m_addrRemote: SteamNetworkingIPAddr
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__pad1: uint16
m_idPOPRemote: SteamNetworkingPOPID
What data center is the remote host in? (0 if we don’t know.)
m_idPOPRelay: SteamNetworkingPOPID
What relay are we using to communicate with the remote host? (0 if not applicable.)
m_eState: ESteamNetworkingConnectionState
High level state of the connection
m_eEndReason: c_int
Basic cause of the connection termination or problem. See ESteamNetConnectionEnd for the values used
m_szEndDebug: [c_char; 128]
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.
m_szConnectionDescription: [c_char; 128]
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_nFlags: c_int
Misc flags. Bitmask of k_nSteamNetworkConnectionInfoFlags_Xxxx
reserved: [uint32; 63]
Internal stuff, room to change API easily
Trait Implementations
sourceimpl Clone for SteamNetConnectionInfo_t
impl Clone for SteamNetConnectionInfo_t
sourcefn clone(&self) -> SteamNetConnectionInfo_t
fn clone(&self) -> SteamNetConnectionInfo_t
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for SteamNetConnectionInfo_t
impl Default for SteamNetConnectionInfo_t
impl Copy for SteamNetConnectionInfo_t
Auto Trait Implementations
impl RefUnwindSafe for SteamNetConnectionInfo_t
impl Send for SteamNetConnectionInfo_t
impl Sync for SteamNetConnectionInfo_t
impl Unpin for SteamNetConnectionInfo_t
impl UnwindSafe for SteamNetConnectionInfo_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more