devela::_dep::rustix::net

Function getpeername

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

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

§References