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

Asynchronous programming

This section delves very deep into some of the issues you'll run into when doing asynchronous programming. After reading it once, I suggest you come back to it, as you progress through the book, to solidify your understanding of these concepts.

The need for going asynchronous

As I previously said, usually, synchronous work is quite easier than asynchronous programming. This is because, it's much easier to think linearly (call to function A, call to function A ends, call to function B, call to function B ends, and so on, so that to think in event-handling manner). In the latter case, you can have, lets say, five events, and you can never know the order in which they execute, and you can't even know if they will all execute! ...

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