Problem 1
Create a simple file transfer program (client and server)
using TCP sockets.
Client should send first a command line, which consists of
word GET (to fetch a file from server) or PUT (to send file to the
server) followed by file name. The line ends in carriage
return character (\r in C) followed by neline (\n in C).
After the command client sends data (after PUT) or receives
(after GET). At the end sending side closes the socket.
Receiveing side must recognize end of file condition
on the socket and finish writing file to disc. Note that
file may be binary, and receiving side must correctly
recognize ond of line to determine start of file data.