SNL (Simple Network Layer) is a very user-friendly library to hide all complicated things about network programming behind a neat C API. It starts the threads on incoming connections, sends and receives data over a socket, and takes care of large enough buffers.