add these: http://www.csd.uoc.gr/~hy556/materia...d-tutorial.pdf Networking and Socket Programming Tutorial in C - CodeProject