Find it useful?
Make a donation!

News: Three things, first thing last! Check out my tech blog!—and tell all your friends!

Next! You can

book cover image
Buy the Guide as a Real Life Perfect-Bound BOOK right now!
Holy Moly!

Just click on the above link! Proceeds from the reasonably-priced volume go to support further guide development! Wo0t!

And now the first thing: the Guide, as you may have read earlier, has been updated to include IPv6 stuff! Amaze your friends and dismay your enemies today! (And tell me about any errors you find along the way!)

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:

Errata (mistakes? What?)

HTML:

PDF:


Mirrors:

Let me know if you have mirrored the site.

Translations!

Let me know if you have made a translation that I should link to.

What's Here for Translators and 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