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) ...
Get Boost.Asio C++ Network Programming - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.