Function io_uring::cqueue::sock_nonempty

source ·
pub fn sock_nonempty(flags: u32) -> bool
Expand description

Return whether socket has more data ready to read.

This corresponds to the IORING_CQE_F_SOCK_NONEMPTY flag, and it signals to the consumer that the socket has more data that can be read immediately.

The io_uring documentation says recv, recv-multishot, recvmsg, and recvmsg-multishot can provide this bit in their respective CQE.