boost::corosio::wait_type

Direction selector for socket and acceptor wait() operations.

Synopsis

enum class wait_type : int;

Description

Passed to socket::wait() and acceptor::wait() to select which readiness condition to await before returning.

Members

Name

Description

read

Wait until the descriptor is ready for a non‐blocking read.

write

Wait until the descriptor is ready for a non‐blocking write.

error

Wait until an error condition has been reported by the kernel (e.g. SO_ERROR is non‐zero or an exceptional event is pending). Error events are not buffered across operations: an error that fires before wait(error) is registered may be lost. Kernel semantics for what counts as an "error condition" vary by platform; treat the contract as best‐effort.

Created with MrDocs