I have written C program on unix. This is a client program and talking to a server program. It begins with Creating a socket, setting up socket parameters, connecting to server and after connection...
http://www.experts-exchange.com/Programming/Languages/C/Q_23544060.html