Struct gns_sys::ISteamNetworkingSockets
source · [−]#[repr(C)]pub struct ISteamNetworkingSockets {
pub vtable_: *const ISteamNetworkingSockets__bindgen_vtable,
}
Expand description
Lower level networking API.
- Connection-oriented API (like TCP, not UDP). When sending and receiving messages, a connection handle is used. (For a UDP-style interface, where the peer is identified by their address with each send/recv call, see ISteamNetworkingMessages.) The typical pattern is for a “server” to “listen” on a “listen socket.” A “client” will “connect” to the server, and the server will “accept” the connection. If you have a symmetric situation where either peer may initiate the connection and server/client roles are not clearly defined, check out k_ESteamNetworkingConfig_SymmetricConnect.
- But unlike TCP, it’s message-oriented, not stream-oriented.
- Mix of reliable and unreliable messages
- Fragmentation and reassembly
- Supports connectivity over plain UDP
- Also supports SDR (“Steam Datagram Relay”) connections, which are addressed by the identity of the peer. There is a “P2P” use case and a “hosted dedicated server” use case.
Note that neither of the terms “connection” nor “socket” necessarily correspond one-to-one with an underlying UDP socket. An attempt has been made to keep the semantics as similar to the standard socket model when appropriate, but some deviations do exist.
See also: ISteamNetworkingMessages, the UDP-style interface. This API might be easier to use, especially when porting existing UDP code.
Fields
vtable_: *const ISteamNetworkingSockets__bindgen_vtable
Implementations
Trait Implementations
sourceimpl Debug for ISteamNetworkingSockets
impl Debug for ISteamNetworkingSockets
sourceimpl Default for ISteamNetworkingSockets
impl Default for ISteamNetworkingSockets
sourceimpl Hash for ISteamNetworkingSockets
impl Hash for ISteamNetworkingSockets
sourceimpl Ord for ISteamNetworkingSockets
impl Ord for ISteamNetworkingSockets
sourcefn cmp(&self, other: &ISteamNetworkingSockets) -> Ordering
fn cmp(&self, other: &ISteamNetworkingSockets) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ISteamNetworkingSockets> for ISteamNetworkingSockets
impl PartialEq<ISteamNetworkingSockets> for ISteamNetworkingSockets
sourcefn eq(&self, other: &ISteamNetworkingSockets) -> bool
fn eq(&self, other: &ISteamNetworkingSockets) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ISteamNetworkingSockets) -> bool
fn ne(&self, other: &ISteamNetworkingSockets) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ISteamNetworkingSockets> for ISteamNetworkingSockets
impl PartialOrd<ISteamNetworkingSockets> for ISteamNetworkingSockets
sourcefn partial_cmp(&self, other: &ISteamNetworkingSockets) -> Option<Ordering>
fn partial_cmp(&self, other: &ISteamNetworkingSockets) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for ISteamNetworkingSockets
impl StructuralEq for ISteamNetworkingSockets
impl StructuralPartialEq for ISteamNetworkingSockets
Auto Trait Implementations
impl RefUnwindSafe for ISteamNetworkingSockets
impl !Send for ISteamNetworkingSockets
impl !Sync for ISteamNetworkingSockets
impl Unpin for ISteamNetworkingSockets
impl UnwindSafe for ISteamNetworkingSockets
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