Receives a message on a connected socket.
impl Socket {
fn recv(&self, buf: &'a mut [u8], flags: MsgFlags) -> Result<usize, Errno>
}| Name | Description |
|---|---|
| buf | The buffer in which the message will be stored. |
| flags | Flags that can change the behavior of the operation. |
Returns the number of bytes received.