Io Service

boost::asio::io_service

Here is a simple example using boost::asio::io_service.

#include <boost/asio.hpp>
 
int main() {
    boost::asio::io_service ios;
    ios.run();
}

Boost.Asio calls event handlers from ios.run(). If no event handlers are registered, ios.run() is finished. The above example is immediately finished.

See the following documentation: