

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Computer Networks; Subject: Computer Science; University: University of Maryland; Term: Unknown 1989;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


CMSC 417 Computer Networks Fall 2007
Assigned: Sep. 18 Due: Sep. 25, 11:59:59 PM.
In this assignment you will write the server program which will communicate using sockets with the client program in the previous assignment.
Your server will run on the linuxlab cluster machines and will listen on a TCP socket bound to a port as described below. Note that you cannot bind to a port below 1024 without having superuser (root) acccss. Given that your class account login id is cs4170xx, the ports you should use are 10xx0-10xx9 (inclusive). Thus, if your login id is cs417060, you will use port range 10600-10609. Your final project must work with any port, but when you are testing your project you should only use the ports you have been allocated to avoid collision with others. The rest of the protocol is as described in Project 0.
The command line syntax for a minimal server is given below. The server will take the host name and port as arguments (you can re-use the argument parsing code in the client). server [