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

Chapter 5. Synchronous Versus Asynchronous

The author of Boost.Asio has done a wonderful job at giving you the option to choose what suits your application best by going synchronous or asynchronous.

In the previous chapter, we've seen skeletons of each type of application, such as synchronous client, synchronous server, asynchronous client, and asynchronous server. You can use each as a base for your applications. In case you need to delve into more detail about each type of application, read ahead.

Mixing synchronous and asynchronous programming

The Boost.Asio library allows you to mix synchronous and asynchronous programming. Personally, I think it's a bad idea, but Boost.Asio, just like C++, allows you to shoot yourself in the foot, if this is ...

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