Module socket

Source

Structsยง

Socket
Owned wrapper around a system socket.

Enumsยง

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

Functionsยง

from_linger ๐Ÿ”’
into_linger ๐Ÿ”’
set_common_flags ๐Ÿ”’
Set FD_CLOEXEC and NOSIGPIPE on the socket for platforms that need it.
set_common_type ๐Ÿ”’
Set SOCK_CLOEXEC and NO_HANDLE_INHERIT on the type on platforms that support it.

Type Aliasesยง

Inner ๐Ÿ”’
Store a TcpStream internally to take advantage of its niche optimizations on Unix platforms.