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

Solving the error


In Chapter 5, Delving into the Boost.Asio Library, we discussed handling exception and error. If we follow all the source code in this book, we may never get any error code to confuse us. However, if we try to modify the source code, even just a little, an error code may be thrown for which the program will not give us any description. Since the error code thrown by the Boost library is based on Windows system error code and is beyond the scope of this book, we can find the description on Microsoft Developer Network (MSDN) website at msdn.microsoft.com/en-us/library/windows/desktop/ms681381%28v=vs.85%29.aspx. Here, we can find all translations of error codes from error 0 to 15999. Using GDB and error code translation from MSDN would become a powerful tool for solving an error that occurs in our program.

Let's go back to Chapter 6, Creating a Client-server Application and run the serverasync program. When the program is run, it listens to the client in 127.0.0.1 on port 4444...

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