Receives data without removing it from the kernel queue.
const MSG_PEEK: MsgFlags = MsgFlags(cty::MSG_PEEK);
This can be used when receiving messages to read data while keeping the data available for further read calls.
On Unix sockets this can be used together with set_peek_offset to read from arbitrary positions in the stream.
recvmsg(2) and MSG_PEEK therein