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

source ·
pub(crate) unsafe fn read_sockaddr(
    storage: *const sockaddr,
    len: usize,
) -> Result<SocketAddrAny>
Expand description

Read a socket address encoded in a platform-specific format.

§Safety

storage must point to valid socket address storage.