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