Function rustix::backend::net::read_sockaddr::read_ss_family

source ·
unsafe fn read_ss_family(storage: *const sockaddr) -> u16
Expand description

Read the ss_family field from a socket address returned from the OS.

§Safety

storage must point to a valid socket address returned from the OS.