CSCI-4220 Network Programming
Spring 2000
Project 5 - RPC Based email database
Due Date: April 11th
Tape Delay Due Date: April 19th
RPC based email address database
You are to write an RPC based email address database system. Each
record in the database contains a name and an email address
(each is simply an ASCII string). Neither a name or an email
address can be longer than 80 characters. Your job is to write
a simple client/server that can provide the following functionality:
- Get the number of records in the database
- Get a list of all records (each contains a name and email)
- Add a new record.
- Given a name, lookup the email address.
The server should store the records on disk, and your client should
support the 4 operations shown above.
Make sure your system can work with lots of records! (Don't impose any
limitations on the number of records in the database).
Submision
You should submit your source code to netprog-submit@cs.rpi.edu
with the subject line set to "P5". Your submission must
include a README file and instructions on how to build and run your
program(s).
Hints, Suggestions:
- A good place to start is the sample code RPC code in
http://www.cs.rpi.edu/~hollingd/netprog/code/rpc/. The
username lookup example should be a big help.
- There is no need to get fancy with the storage/retrieval of
these simple records - whatever works is fine.
- Look at the ".h" file generated by rpcgen! The code you
write must match the prototypes found in this header file.