C++ Network Programming Re Sockets

I need HELP !!!
I am new to the world of C++ but need to know what the following two small programs does in order to complete the task assigned. Could someone plzz shed some light on the matter. It will be much appreciated.

The files is attached as a word document called Sent.doc but is zipped.

Our lecturer says its EASY PEASY