(C++) Unix/Linux Networking Socket tutorials ?
I bought some books (and find my wallet exhausted might I say) so I can't afford another book that focuses on Linux as opposed to the neutral books that goes all windows when the networking chapter opens up (how could I know, I am/was a newb!)
Regardless, I've read a bit and think I have a (somewhat) working understanding of the c++ basics, and I really would like to dive into the socket programming now.. So is there any (non after-college paper) on this ? I ran into very few papers, and they were study material for network & communications educations ( i believe). And for a 16 year old, that's a bit much. I *really* hope someone would point me in the right direction, thanks a whole bunch in advance! (And I'd rather not run over the winsock.h tutorials in my book cause I have no intentions of developing software for windows (at least yet!)) |
A short search and I have 2 examples. One in C, second in C++. I'd say it's better to start from the first one (just easier to understand, C++ one has too many classes to make the process clear). So there are the links: http://www.coding-zone.co.uk/cpp/art...gramming.shtml and http://www.linuxgazette.com/issue74/tougher.html
|
I ran over the top one once. Although it makes me wonder:
Can I really use this C code and compile it as cpp ? or will libraries, calls etc be different ? |
You can, no problem. A correct piece of C code is also a correct piece of C++ code.
|
Just brilliant :) That's why I skipped that site in the first place, thanks :)
|
this is the definitive tutorial:
http://www.ecst.csuchico.edu/~beej/guide/net/ |
book @ http://www.advancedlinuxprogramming.com/
has a chapter dealing with interprocess communication (including sockets for communication over network). there is also a chapter where they implement a full-fledged example application (some sort of a mini web-server serving pages that show system info). Hope that helps, --- Maksim Sipos |
Note that the book mentioned by max_sipos is freely downloadable entirely (each chapter as one PDF) from the site.
|
All times are GMT -5. The time now is 03:06 AM. |