Netgame-examples is a project mainly written in C++ and C, it's free.
Examples from http://gafferongames.com/networking-for-game-programmers/