Function otter_api_tests::crates::otter_support::crates::nix::sys::socket::sendmmsg
[−]pub fn sendmmsg<'a, I, C, S>(
fd: i32,
data: impl IntoIterator<Item = &'a SendMmsgData<'a, I, C, S>>,
flags: MsgFlags
) -> Result<Vec<usize, Global>, Errno> where
I: 'a + AsRef<[IoSlice<'a>]>,
C: 'a + AsRef<[ControlMessage<'a>]>,
S: 'a + SockaddrLike,
Expand description
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
fd
: Socket file descriptordata
: Struct that implementsIntoIterator
withSendMmsgData
itemsflags
: Optional flags passed directly to the operating system.
Returns
Vec
with numbers of sent bytes on each sent message.