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ยง

Functionsยง

  • initialize_family_to_unspec ๐Ÿ”’ โš 
    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.
  • 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.