This cheat sheet is based on Beej’s Guide to Network Programming and summarizes the basics of network programming in C using <sys/socket.h>. I have uploaded an example server.c and client.c programm if you want to have a look.