Method lrs::socket::Socket::send

Sends a message over a connected socket.

Syntax

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

Arguments

NameDescription
buf

The buffer containing the message.

flags

Flags that can change the behavior of the operation.

Return value

Returns the number of bytes sent.

See also