Function read_sa_family

Source
pub(crate) const unsafe fn read_sa_family(storage: *const sockaddr) -> u16
Expand description

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

ยงSafety

storage must point to a least an initialized sockaddr_header.