How to use the socket

I must write some codes about client/server architecture.
The server program send the data to the client program,And the data is huge count and I want to implement that If some error happen and traslation of the data is interrupted,The program can send the data to the client program from the pos of the data stream where is interrupted. :confused:

I started my UNIX voyage 15 years ago or so with this book:

<B> UNIX Network Programming by Richard Stevens</B>

If you get this text (or similar texts by Stevens) and work the examples, you will be become a sockets, client-server expert.