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