O'Reilly logo

Boost.Asio C++ Network Programming - Second Edition by John Torjo, Wisnu Anggoro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Delving into the Boost.Asio Library

Now that we are able to run the io_service object and give it some work to do, it is time for us to find out more about other objects in the Boost.Asio library in order to develop the network application. All works of the io_service object we used before are run asynchronously but not in a serialized order, which means we are not able to determine the order of the io_service object's work that will be run. Also, we have to consider what we will do if our application encounters any errors at runtime and think about time interval in running any io_service object work. Therefore, in this chapter, we will discuss the following topics:

  • Serially executing the work of the io_service object
  • Catching the exception(s) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required