Skip to main content

recv_fd

Function recv_fd 

Source
pub fn recv_fd(stream: &UnixStream) -> Result<Option<RawFd>>
Expand description

Receive a raw file descriptor from a connected Unix stream via SCM_RIGHTS.

Returns None when the sender has closed the connection (EOF). Retries on EINTR to prevent spurious session drops.