Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

basic_socket_acceptor::non_blocking_io

Inherited from socket_base.

IO control command to set the blocking mode of the socket.

typedef implementation_defined non_blocking_io;

Implements the FIONBIO IO control command.

Example
boost::asio::ip::tcp::socket socket(io_service); 
...
boost::asio::socket_base::non_blocking_io command(true);
socket.io_control(command);

PrevUpHomeNext