rustix::backend::net

Module 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§

Functions§

  • Set the ss_family field of a socket address to AF_UNSPEC, so that we can test for AF_UNSPEC to test whether it was stored to.
  • Read an optional socket address returned from the OS.
  • read_sockaddr 🔒
    Read a socket address encoded in a platform-specific format.
  • Read a socket address returned from the OS.
  • read_ss_family 🔒
    Read the ss_family field from a socket address returned from the OS.