

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; Professor: Bhattacharjee; Class: Computer Networks; Subject: Computer Science; University: University of Maryland; Term: Spring 2009;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


CMSC 417 Computer Networks Spring 2009
Assigned: 02/05/2009 Due: 02/12/2009, 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 server program must work with any port, but when you are testing your server program you should only use the ports you have been allocated to avoid collision with others. The rest of the protocol is as described in Assignment 0.
The command line syntax for a minimal server is given below. The server will take the port number as an argument. If the port number is not specified, the server will listen to SERVER PORT instead.
server [