Wait for the acceptor to become ready to read, ready to write, or to have pending error conditions.
void wait( wait_type w);
This function is used to perform a blocking wait for an acceptor to enter a ready to read, write or error condition state.
Specifies the desired acceptor state.
Waiting for an acceptor to become readable.
std::experimental::net::ip::tcp::acceptor acceptor(io_context); ... acceptor.wait(std::experimental::net::ip::tcp::acceptor::wait_read);