Method lrs::socket::Socket::send_ctrl

Gathers a message from multiple source and sends it together with a control message on a connected socket.

Syntax

impl Socket {
    fn send_ctrl<C>(&self, buf: &[&[u8]], ctrl: C, flags: MsgFlags) -> Result<usize, Errno>
        where C: AsRef<[u8]>,
}

Arguments

NameDescription
buf

The buffers containing the message.

ctrl

The control message.

flags

Flags that can change the behavior of the operation.

Return value

Returns the number of bytes sent.

See also