Online-Multiplayer-Game is a project mainly written in C and C++, it's free.
client.c & server.c are the actual finalised codes.