CSCI-4220 Network Programming
Spring 1999
Project 7 - RPC Client/Server
Due Date: ?
RPC based email 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 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 3 operations shown above.
Writeup Only
If you choose to do just the minimum (5 points), you should do the
following:
- Start with one of the sample RPC
programs, make some changes to the protocol definition file to
support new remote procedure, or perhaps change the existing remote
procedures. NOTE: you must also adjust the client and server code to
reflect these changes. Get the changes working, write
up a few paragraphs on what you did (remember - convince me you
understand what RPC is!) and send that along with the new code.
For example: start with the simple example and add a
new remote procedures that can handle floating point values.
Hints, Suggestions:
- A good place to start is the sample code for doing user name
lookups
ulookup.
- There is no need to get fancy with the storage/retrieval of
these simple records - whatever works is fine.