Find it useful?
Make a donation!
News: Right! This is the result of the major overhaul. The PDF system is completely rewritten for what I swear is the last time. At least now it should be far more Unicode-friendly, and look better, besides. Feedback and error reports are always appreciated!

Hello, comp.lang.c freaks! Please keep in mind this is an alpha-quality document. If you have corrections, I'd love to hear them, but understand that even I might not have read that part of the guide yet!

Beej's Guide to Network Programming

Using Internet Sockets

(Click here for other guides!)

Hello, one and all! This is my little how-to guide on network programming using Internet sockets, or "sockets programming", for those of you who prefer it. The sockets API, though started by the Berkeley folk, has been ported to many many platforms, including Unix, Linux, and even Windows.

Unfortunately, it can be a little, um, "much" to digest the API, but as long as you know some C or C++, this guide should springboard you into the realm of network programming with hopefully as little hassle as humanly possible!

What's Here for Readers:

HTML:

PDF:

PostScript, gzipped:

What's Here for Writers:

The build system requires Python 2.4+, Gnu make, Xerces-J (for DTD verification—can be disabled), and Apache FOP (or the equivalent) if you want print output.


Contact Beej: beej@beej.us