We don't help with assignments. Better start working yourself or you won't pass.
And can you tell the e-mail address of your teacher? Then we can mail him a link to this post of yours. I'm sure he finds the way you're trying to cheat interesting.
Kees
Hi!
Below is the project description. Please can someone write down the code for this real quickly and send it to <email address removed>! Really appreciate it. Really need it badly in a day!
SOCKET PROGRAMMING PROJECT FALL 2010
The objective of this project is to gain a basic understanding of socket programming by developing C
code for a client capable of retrieving data from a designated server. While the basic structure of your
client can be modeled on that of the timeclient discussed in class it will differ from the class timeclient in
two ways, namely: i) it must rely on UDP rather than TCP for communication, and ii) it must be capable
of requesting data concerning a specific student or subject rather than simply requesting a response.
In this assignment you will use sockets in C to write a client to retrieve student or class data from a data
server via an intermediate server that you will also write.
The relations among the Main Server your
Intermediate Server and your client are diagramed below.
The Main Server:
The Main Server contains the database of students and the classes in which they have enrolled. This
server program has been written for you and is currently running on host l-lnx015.engr.uiowa.edu at port
number 15020.
The Intermediate server:
You are to implement the intermediate server. This is a server for the client and a client for the main
server. It should take the student or class name received from your client and send it to the main server,
retrieve the requested data from the main server and send the requested data back to the client. The
intermediate server may communicate with the client on any free port between 15000 and 15100.
The Client:
You are to implement the client. The client communicates with the main server through the intermediate
server. The client may request data concerning either the students enrolled in a particular subject or the
classes in which particular students have enrolled. Your client should send the name of the class or the
name of the student for which it need to seek information.
The student enrollment data stored in the main server is listed below. Correct client student or class
enrollment requests should return correct data; incorrect requests should return a ?Bad request? message.
Students English Math Science Music
John Yes Yes - -
David - Yes Yes -
Alex - Yes Yes Yes
Anna Yes - Yes Yes
Ashley Yes - Yes Yes
Brian - Yes - Yes
Megan Yes Yes Yes -
Examples of correct client/server interactions include:
l-lnx010$ client <hostname> Brian
Brian has enrolled for Math and Music Classes
l-lnx010$ client <hostname> English
The students enrolled for English are John, Anna, Ashley and Megan
Main Server
(given)
Intermediate
Server
(you write)
Client
(you write)
l-lnx010$ client <hostname> xyz
Bad request
REGARDS,
Gaurav
Note: This post was edited by forum moderator to remove email address to prevent spamming and potential circumvention of forum policies on 10/27/2010 on 5:46 AM PT

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic