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 thess_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 thess_family
field from a socket address returned from the OS.