RPC package has an RPC compiler (rpcgen) that automatically generates the client and server stubs.
RPC package uses XDR (eXternal Data Representation) to represent data sent between client and server stubs.
From Stevens Unix Networking book.
Running rpcgen msg.x generates msg.h, msg_clnt.c andmsge_svc.c. The header file is included with both client and server. The respective C source files are linked with client and server code.
<
...
Read more »