Objective: Gain familiarity with TCP (stream) sockets by writing a simple program.
Deliverables: The source code to your client and server, as well as screenshots or other recording showing your client and server running and then a diff command being run on the transferred file, in hard copy.
Teams: You should write your code individually, although you may of course discuss with classmates.
Grading: 10 points, as described below.
You may start this assignment with the intructor's echo code, which completes a large portion of it for you. You may also use your file reading code from project 1 if appropriate.
In this assignment, you are to write a file transfer server, and a client that interacts with it. These do not need to implement a full featured protocol such as sftp, instead, basic file transfer functionality is all that is needed. Specifically your programs must do the following:
You should test your program using the diff command. Run diff -s filename1 filename2 substituting the actual filenames of the original and new copies (if you test using the 127.0.0.1 IP address, your program will work between client and server on the same computer).