getpeername

Function getpeername 

Source
pub unsafe extern "C" fn getpeername(
    __fd: c_int,
    __addr: *mut sockaddr,
    __len: *mut socklen_t,
) -> c_int
Expand description

Put the address of the peer connected to socket FD into *ADDR (which is *LEN bytes long), and its actual length into *LEN.