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

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

Read an optional socket address returned from the OS.

§Safety

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