Function rustix::net::getpeername
source · pub fn getpeername<Fd: AsFd>(sockfd: Fd) -> Result<Option<SocketAddrAny>>
Expand description
getpeername(fd, addr, len)
—Returns the address a socket is connected
to.
pub fn getpeername<Fd: AsFd>(sockfd: Fd) -> Result<Option<SocketAddrAny>>
getpeername(fd, addr, len)
—Returns the address a socket is connected
to.