Method lrs::socket::Socket::recv

Receives a message on a connected socket.

Syntax

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

Arguments

NameDescription
buf

The buffer 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