unsafe fn socket_addr_from_c(
storage: *const sockaddr_storage,
len: usize,
) -> Result<SocketAddr>Expand description
Converts the C socket address stored in storage to a Rust SocketAddr.
§Safety
storagemust contain a valid C socket address whose length is no larger thanlen.