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.

References