pub async fn unix_recvmsg<B: BufMut>(
socket: &mut UnixStream,
buf: &mut B,
) -> Result<(usize, ConnectionAddress)>Expand description
Receives data from the Unix domain socket.
This function is specifically for Unix domain sockets in stream mode (i.e. SOCK_STREAM), which are represented via
UnixStream in tokio.
On success, returns the number of bytes read and the address from whence the data came.
ยงErrors
If the underlying system call fails, an error is returned.