Method lrs::socket::Socket::scatter_recv

Receives a message on a connected socket and stores it in multiple buffers.

Syntax

impl Socket {
    fn scatter_recv(&self, buf: &mut [&mut [u8]], flags: MsgFlags) -> Result<usize, Errno>
}

Arguments

NameDescription
buf

The buffers in which the message will be stored.

flags

Flags that can change the behavior of the operation.

Return value

Returns the number of bytes received.

See also