CIS307: Homework 6: Using Remote Procedure Calls
This homework is given December 3rd 1996, it is optional, not for-credit.
It will be accepted and critiqued by the instructor up to the beginning of
the Spring semester.
It is a continuation of homework 5. As in homework 5
communication between clients
and server is taking place across networks. But now instead of using sockets
directly, we use Remote Procedure Calls (RPCs),
which isolate the programmer from the details of the transport
mechanism being used.
Support material on the use of RPC is provided in class, in the lab,
and in the
notes.
You should also read the hints for this homework.
Your code for the homework will be divided into (at least) three files:
- A file sm.x containing the specification for the RPC interface.
This file, and an example of its use, is discussed in the hints for
this homework. [In fact, this file is given to you in the hints.]
- A file sm_svc_proc.c containing your implementation for the
STORE_READ and STORE_UPDATE functions (at the server). When the server
image is available, it should be launched from the unix shell without
any parameters.
- A file sm.c containing the code for the client. When the client
image is available,
it should be launched from the unix shell with one parameter, the
name of the computer on which the server is running.
Apart for the fact that we are using remote procedure calls,
your program should behave as in homework 5.
ingargiola@cis.temple.edu