THE DEADLINE IS VERY STRICT.
Submission:
hand in class a printed copy of the code and the Makefile
send by email to crisn@cs.jhu.edu, a file (hw3_name.tar.gz)containing the working directory (code and Makefile ONLY). Please make sure that you
do not include binaries or core files in your tar.gz file.
To create a tar.gz archive, suppose the working directory is hw3_jdoe:
cd ..
tar zcvf - hw3_jdoe > hw3_jdoe.tar.gz
To extract the content of a tar.gz archive, suppose the file is hw3_jdoe.tar.gz:
tar zxvf hw3_jdoe.tar.gz
Homework:
Part 1: UDP
Write a simple client-servers program using UDP that does the following. The client connects to the server and sends its name and the current time (t1). The server will print on the screen the name of the client, and it will send back the current server time (t2). When receiving t2, the client gets current time t3. Based on t1, t2, and t3 compute the latency between the client host and the server host.
Part 2: TCP
Write a simple client-server program (using TCP). The client connects to the server and transfers a file. The server will print on the screen the name of the client, the name and the size of the file and will save the file on the disk.
www.cnds.jhu.edu/courses/cs111