Skip to main content

Module socket

Module socket 

Available on crate feature net only.

Modules§

core
Utilities for creating and using sockets.
linuxLinux
opts
Options and types in function of creating Sockets.

Structs§

DeviceName
Name of a (network) interface device name, e.g. eth0.
HardwareAddress
Link-layer (MAC) address of an Interface.
Interface
A network interface of the local host, as enumerated by interfaces.
InterfaceAddress
One IP address assigned to a local network Interface.
InterfaceFlags
Status and capability flags of a local network Interface.
SocketOptions

Traits§

SocketService
Glue trait that is used as the trait bound for code creating/preparing a socket on one layer or another.

Functions§

interfaces
Enumerate the host’s network interfaces and their assigned addresses.
local_addresses
Every address assigned to an interface that is up (administratively and operationally), filtered to the given IpScopes, deduplicated, in the order the platform reported them.
route_source_address
The address the OS would send from to reach destination, without sending anything: connecting a UDP socket only sets the peer.