Create a network application using ONC RPC (Sun RPC ) to implement "telephone book service"
$10-30 USD
Ditutup
Dibuat lebih dari 8 tahun yang lalu
$10-30 USD
Dibayar ketika dikirim
You should define 6 procedures:
1) ADD_TO_DATABASE 2) REMOVE_FROM_DATABASE 3) LOOKUP_NAME 4) LIST 5) QUIT 6) TERMINATE
The procedure ADD_TO_DATABASE should take two strings as a parameter (the first containing the username and the second containing the phone number). It adds the username and the phone number into a database (the database should be a simple file). If the routine is successful, it returns the number of entries in the database. If the routine is unsuccessful, it returns a string with an error message.
The procedure REMOVE_FROM_DATABASE should take a user name as a parameter. It deletes the user's entry from the database. If the routine is successful, it returns the number of entries currently in the database. If the routine is unsuccessful, it returns a string with an error message.
The procedure LOOKUP_NAME should take a string as a parameter. It retrieves all entries from the database whose name starts with the given string. If the routine is successful, it returns a linked list of name/phone number pairs. If the routine is unsuccessful, it returns a string with an error message.
The procedure LIST should take a void as a parameter. It retrieves all entries from the
database. If the routine is successful, it returns a list of name/phone number pairs. If the routine is unsuccessful, it returns a string with an error message.
The procedure QUIT simply exits the client.
The procedure TERMINATE exits the server and the client. Before the server exits, it must make sure to unregister itself. For example,
when typing rpcinfo –p, then your program should not be present.
The client application reads requests from the command line. The requests are "add", "delete", "query", "list", "quit", and “terminate.”
I am very proficient in c, c++. I have 16 years c++ developing experience now, and I have worked for 6 years. My work is online game developing, and mainly focus on server side, the language is c++ under linux. I used c++ to make many great projects, for example, I made the tools which can convert java files to c++ scripts which has the same effect, of course garbage collection included. I also made our own mobile game using c++, I even can show you the demo of client. Trust me, please let expert help you.