get_peer_pid_ids

Function get_peer_pid_ids 

Source
pub fn get_peer_pid_ids(
    sock: &UnixStream,
) -> Result<(Option<pid_t>, uid_t, gid_t)>
Expand description

Get the PID, UID, and GID of the given socket’s peer.

This only works on Linux, OpenBSD, NetBSD, and FreeBSD 13+. On other operating systems, this function is not available. On FreeBSD 12 and earlier, the returned PID is always None.