CITS3002 Computer Networks  
prev
next CITS3002 help3002 CITS3002 schedule  

SUN Microsystem's RPC Compiler - rpcgen

Many operating systems provide RPC within their kernels and as a standard library of routines.

One such example is SUN's implementation of RPC (in [RFC1057]). The RPC package consists of rpcgen, a compiler for creating remote procedure call server and client stubs, the XDR for encoding data into a portable manner between different architectures and a runtime library (provided in C's standard library libc).

For example:

program DATE_PROG {
  version DATE_VERS {
     long    BIN_DATE(void) = 1;   /* proc #1 */
     string  STR_DATE(long) = 2;   /* proc #2 */
  } = 1;                           /* version 1 */
} = 0x37621;                       /* program number */

Complete example in rpc_example.zip


CITS3002 Computer Networks, Lecture 10, Architecture independent applications, p7, 8th May 2024.