Constant lrs::socket::msg::MSG_PEEK

Receives data without removing it from the kernel queue.

Syntax

const MSG_PEEK: MsgFlags = MsgFlags(cty::MSG_PEEK);

Remarks

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.

See also