Struct steamworks_sys::ISteamNetworkingSockets [−][src]
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, see ISteamNetworkingMessages.) In this TCP-style interface, the “server” will “listen” on a “listen socket.” A “client” will “connect” to the server, and the server will “accept” the connection.
- 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
impl ISteamNetworkingSockets
[src]
Trait Implementations
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
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, 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>,