Sends a message over a connected socket.
impl Socket {
fn send(&self, buf: &[u8], flags: MsgFlags) -> Result<usize, Errno>
}| Name | Description |
|---|---|
| buf | The buffer containing the message. |
| flags | Flags that can change the behavior of the operation. |
Returns the number of bytes sent.