pub async fn unixgram_recvmsg<B: BufMut>(
socket: &mut UnixDatagram,
buf: &mut B,
) -> Result<(usize, ConnectionAddress)>
Expand description
Receives data from the Unix domain socket.
This function is specifically for Unix domain sockets in datagram mode (i.e. SOCK_DGRAM), which are represented via
UnixDatagram
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.