socket2::sys

Function getpeername

Source
pub(crate) fn getpeername(fd: c_int) -> Result<SockAddr>