[Previous] [Up] [Next]
Go backward to Daemon processes & Logging
Go up to Labs
Go forward to Project Specification

TCP/IP TCP server and client program.

Write two programs. One a TCP client and the other a TCP server. You can choose your own language. I will suggest that one be done in "C" and the other in "perl". I will also suggest that the server program be written first. Now, the minimum requirements:
  1. The server needs to accept data and save it while it is running. The server needs to "Date stamp" the data it receives.
  2. The server need to keep track of the number of connections it has serviced.
  3. The server needs to be able to provide the data back to the client -- with the date stamp.
  4. The server needs to run a daemon process. You may want to set up an alarm to kill it off after 30 minutes. You may also want to set up a signal (SIGHUP) to dump the "database" into the log file.
  5. The client needs to be able to connect with the server, store "data", and retrieve "data" and time stamps.
Remember to use a port number above 1023 if you are not running as SU. If you have privilege on your system you may want to change the /etc/services file.

An example perl client program is available by anonymous ftp at
ftp://lt.tucson.az.us/pub/taber_client. An example "C" server program is available by anonymous ftp at
ftp://lt.tucson.az.us/pub/taber_server.c.

When done turn in a copy of your client and server program with an example of your program running.

ltaber@pima.edu

[Previous] [Up] [Next]