pub fn getpeername<Fd: AsFd>(sockfd: Fd) -> Result<Option<SocketAddrAny>>
Available on crate feature net only.
Expand description

getpeername(fd, addr, len)—Returns the address a socket is connected to.

References