Function otter_api_tests::crates::otter_support::crates::nix::sys::socket::recvmsg
[−]pub fn recvmsg<'a, S>(
fd: i32,
iov: &'outer mut [IoSliceMut<'inner>],
cmsg_buffer: Option<&'a mut Vec<u8, Global>>,
flags: MsgFlags
) -> Result<RecvMsg<'a, S>, Errno> where
S: 'a + SockaddrLike,
Expand description
Receive message in scatter-gather vectors from a socket, and optionally receive ancillary data into the provided buffer. If no ancillary data is desired, use () as the type parameter.
Arguments
fd
: Socket file descriptoriov
: Scatter-gather list of buffers to receive the messagecmsg_buffer
: Space to receive ancillary data. Should be created bycmsg_space!
flags
: Optional flags passed directly to the operating system.