Function nix::sys::socket::sendmsg [] [src]

pub fn sendmsg<'a>(
    fd: RawFd,
    iov: &[IoVec<&'a [u8]>],
    cmsgs: &[ControlMessage<'a>],
    flags: MsgFlags,
    addr: Option<&'a SockAddr>
) -> Result<usize>

Send data in scatter-gather vectors to a socket, possibly accompanied by ancillary data. Optionally direct the message at the given address, as with sendto.

Allocates if cmsgs is nonempty.