CPS 472: Computer Networking
Project 2: Beginning Clients
and Servers
GROUP PROJECT TO BE DEMONSTRATED IN CLASS
Tuesday, January 21, 2003
Due Thursday, January 30, 2003
In-Class Demonatration Tuesday,
January 30, 2003
Dr. Jennifer Seitzer
Description:
Implement the “In-Class Challenge” we worked on Thursday, January 16, 2003. In particular, program a beginning client and server such as that presented on the handout given in class. You may use either Berkeley or Windows sockets. Indicate on the written description the computational platform on which you worked including the architecture of the machine (e.g., SUN or Pentium based), the operating system, and the choice of socket API you chose.
Each group must do
the following activity:
· Write a server that returns the server directory listing and logs visiting clients IP address and port numbers.
In addition, your
server should do one of the following tasks:
a.) returns the time of day and date numbers..
b.) returns a motto of the day
c.) a specified file by the client
Submission
Requirements:
·
All programs must be submitted in a folder.
The folder should be properly identified on the outside areas with the
following information:
1. Last Name
2. First Name
3. Class Name and Number
·
A one to two page typed description explaining the
program, your implementation, the algorithms you employed, your input and
output files, and any difficulties you encountered in doing this project
·
A
hard copy of all source code
with the first line indicating, by a comment, the name of the physical file
in which the source code is located.
·
A
hard copy of output from the program
·
A
hand-drawn structure chart showing all subroutines (functions) and the
functions they call.
•
A
program cover sheet STAPLED to the source, output, structure chart. This can be procured from the course
website: http://homepages.udayton.edu/~seitzer/cps472
Note: the paper should be stapled so that the documents are ordered
as follows:
1.
Cover Sheet
2.
Written Description
3.
Program Source
4.
Program Output
5.
Structure Chart
¨
A labeled diskette with your name containing all source files (both .h and .cpp) , the generated
output file, any input data files, and any output data files, and an executable. Please DO NOT give me any other files on the
diskette.
Using Microsoft
C/C++ Environments:
In order to use the Visual
Studio C/C++ environments for networking applications, you must include the wsock32.lib
and ws2_32.lib
libraries. To do so, do the following:
1.
Select Project Settings in
upper menu bar
2.
Choose the Link
tab
3.
Move cursor to right hand side and go to the
blank labeled "Object/Library Modules". Move cursor to the end of all currently included libraries and add wsock32.lib and ws2_32.lib
4.
Move cursor below to the blank labeled
"Project Options". Move
cursor to the end of all currently included libraries and add wsock32.lib and ws2_32.lib