Struct steamworks_sys::SteamNetConnectionInfo_t [−][src]
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.
Note that the connection ID usually matches the HSteamNetConnection handle, but in certain cases with symmetric connections it might not.
reserved: [uint32; 64]
Internal stuff, room to change API easily
Trait Implementations
impl Clone for SteamNetConnectionInfo_t
[src]
fn clone(&self) -> SteamNetConnectionInfo_t
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SteamNetConnectionInfo_t
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,