pub fn recvmsg<'a>(
iov: &[IoVec<&mut [u8]>],
cmsg_buffer: Option<&'a mut Vec<u8>>,
) -> Result<RecvMsg<'a>>
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.
fd: Socket file descriptor
iov: Scatter-gather list of buffers to receive the message
cmsg_buffer: Space to receive ancillary data. Should be created by
flags: Optional flags passed directly to the operating system.