nix::sys::socket

Function getpeername

source
pub fn getpeername<T: SockaddrLike>(fd: RawFd) -> Result<T>
Expand description

Get the address of the peer connected to the socket fd.

Further reading