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

pub fn sendmmsg<'a, I, C>(
    fd: RawFd,
    data: impl IntoIterator<Item = &'a SendMmsgData<'a, I, C>>,
    flags: MsgFlags
) -> Result<Vec<usize>> where
    I: AsRef<[IoVec<&'a [u8]>]> + 'a,
    C: AsRef<[ControlMessage<'a>]> + 'a, 

An extension of sendmsg that allows the caller to transmit multiple messages on a socket using a single system call. This has performance benefits for some applications.

Allocations are performed for cmsgs and to build msghdr buffer

Arguments

Returns

Vec with numbers of sent bytes on each sent message.

References

sendmsg