Module rustix::backend::net::read_sockaddr
source ยท Expand description
The BSD sockets API requires us to read the ss_family
field before we can
interpret the rest of a sockaddr
produced by the kernel.
Structsยง
- sockaddr_header ๐
Functionsยง
- initialize_family_to_unspec ๐ โSet the
ss_family
field of a socket address toAF_UNSPEC
, so that we can test forAF_UNSPEC
to test whether it was stored to. - maybe_read_sockaddr_os ๐ โRead an optional socket address returned from the OS.
- read_sockaddr ๐ โRead a socket address encoded in a platform-specific format.
- read_sockaddr_os ๐ โRead a socket address returned from the OS.
- read_ss_family ๐ โRead the
ss_family
field from a socket address returned from the OS.