Getting started learning C++ network programming

Hi all,

I like to learn network programming but know almost nothing about it except for a few general terms like IP, TCP, IDP, pocket and so forth (all coming from years ago when studying at the university)
I'm interested in Asio. And there're many many links rising up when one searches for starting learning C++ network programming, say with Asio, but I need some specific resource, with the following specifications, either it's a book, tutorial, YouTube series, etc.

I need things as simple as possible (to pave the way for me to acquire that knowledge as a starter)
As well as, if the reference takes advantages of practical examples, alongside the theory, it will be better possible to make progress since I can get my feet wet and code in effect.

What are your suggestions, please?
What resource should I take to greatly learn network programming using C++?

Thanks in advance.
Last edited on
I like to learn network programming ...
It was traditional to recommend Beej's Guide. It's a good place to start. I learned it from Doug Comer's TCP/IP series, old Prentice Hall red books from yesteryear.
https://beej.us/guide/bgnet/

I'm interested in Asio. ... need things as simple as possible
ASIO isn't simple to write directly in C, and the C++ encapsulation can be tricky to understand, so hold off until you're comfortable with network programming first.
There's several books available on Asio C++ programming. Just search Amazon. There's also programming books on ACE and C++.

If you're using Windows, there are some books (old but still relevant) re Windows Winsock programming. Note that there are some books re Windows Network programming that are to do with the Windows netxxx API's (eg NetUserAdd() ). These are nothing to do with TCP network programming.

If you're going to get involved with networking, you should install and know how to use Wireshark. https://www.wireshark.org/

For general book(s) on TCP networks as well as Comer books, there's also those by Tanenbaum eg https://www.amazon.co.uk/Computer-Networks-Pearson-New-International/dp/1292024224/ref=sr_1_4



Topic archived. No new replies allowed.