A good description for Tcp sockets in C language:
http://www.csc.villanova.edu/~mdamian/Sockets/TcpSockets.htm
UPDATE at 2012/31/01
Since, this entry is quite old, but a new entry in our blog would be helpful for those are playing with linux sockets using C.
Try this link.