Perform an IO control command on the acceptor.
template< typename IoControlCommand> void io_control( IoControlCommand & command);
This function is used to execute an IO control command on the acceptor.
The IO control command to be performed on the acceptor.
Thrown on failure.
Getting the number of bytes ready to read:
std::experimental::net::ip::tcp::acceptor acceptor(io_context); ... std::experimental::net::ip::tcp::acceptor::non_blocking_io command(true); socket.io_control(command);