O'Reilly logo

Boost.Asio C++ Network Programming by John Torjo

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

Summary

There are many things to consider when choosing to go synchronous or asynchronous. First off, avoid mixing them.

In this chapter, we've seen:

  • How easy it is to implement, test, and debug each type of application
  • How threading affects your application
  • How the application behavior (pull-like or push-like) affects its implementation
  • How you can plug in your own asynchronous operations when you go asynchronous

Following, we're about to see a few not-so-well-known features of Boost.Asio, and my Boost.Asio favorite feature, co-routines, which allows you to grab the pros of going asynchronous with close to none of its cons!

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