...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Inherited from posix::basic_descriptor.
Perform an IO control command on the descriptor.
void io_control( IoControlCommand & command);
This function is used to execute an IO control command on the descriptor.
The IO control command to be performed on the descriptor.
Thrown on failure.
Getting the number of bytes ready to read:
boost::asio::posix::stream_descriptor descriptor(io_service); ... boost::asio::posix::stream_descriptor::bytes_readable command; descriptor.io_control(command); std::size_t bytes_readable = command.get();