Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Boost.Asio C++ Network Programming

You're reading from   Boost.Asio C++ Network Programming Learn effective C++ network programming with Boost.Asio and become a proficient C++ network programmer

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781785283079
Length 200 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Wisnu Anggoro Wisnu Anggoro
Author Profile Icon Wisnu Anggoro
Wisnu Anggoro
Arrow right icon
View More author details
Toc

Getting closer to the Boost.Asio library


Imagine we are developing an audio downloader application and we want the user to be able to navigate to all the menus in the application, even when the downloading process is in progress. If we do not use asynchronous programming, the application will be blocked by the downloading process and the user will have to wait until the downloading of the file is complete. But thanks to asynchronous programming, the user does not need to wait until the download process is complete to continue using the application.

In other words, a synchronous process is like queuing in a theater ticketing line. We will be served only if we reach the ticket counter and before that, we have to wait for all the processes of the previous costumers who are in front of us in the line to be completed. In contrast, we can imagine that the asynchronous process is like dinning in a restaurant where the waiter does not have to wait for the order of a customer to be prepared by the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image