Module socket2

Source
Expand description

Low-level network socket programming beyond std::net.

See crate ::socket2.

Structs§

Domain
Specification of the communication domain for a socket.
MaybeUninitSlice
A version of IoSliceMut that allows the buffer to be uninitialised.
MsgHdr
Configuration of a sendmsg(2) system call.
MsgHdrMut
Configuration of a recvmsg(2) system call.
Protocol
Protocol specification used for creating sockets via Socket::new.
RecvFlags
Flags for incoming messages.
SockAddr
The address of a socket.
SockAddrStorage
Rust version of the sockaddr_storage type.
SockRef
A reference to a Socket that can be used to configure socket types other than the Socket type itself.
Socket
Owned wrapper around a system socket.
TcpKeepalive
Configures a socket’s TCP keepalive parameters.
Type
Specification of communication semantics on a socket.

Enums§

InterfaceIndexOrAddress
A local interface specified by its index or an address assigned to it.

Type Aliases§

sa_family_t
The integer type for the ss_family field on this platform.
socklen_t
The integer type used with getsockname on this platform.