Method lrs::socket::Socket::send_ctrl_to

Gathers a message from multiple source and sends it together with a control message on a connection-less socket.

Syntax

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

Arguments

NameDescription
buf

The buffers containing the message.

addr

The destination of 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