rustix::net

Function sendmsg

Source
pub fn sendmsg(
    socket: impl AsFd,
    iov: &[IoSlice<'_>],
    control: &mut SendAncillaryBuffer<'_, '_, '_>,
    flags: SendFlags,
) -> Result<usize>
Available on crate feature net only.
Expand description

sendmsg(msghdr)—Sends a message on a socket.

This function is for use on connected sockets, as it doesn’t have a way to specify an address. See the sendmsg_v4, sendmsg_v6 sendmsg_unix, [sendmsg_xdp], and sendmsg_any to send messages on unconnected sockets.

§References