Skip Navigation Links | |
Exit Print View | |
ONC+ Developer's Guide Oracle Solaris 11 Express 11/10 |
1. Introduction to ONC+ Technologies
4. Programmer's Interface to RPC
5. Advanced RPC Programming Techniques
6. Porting From TS-RPC to TI-RPC
7. Multithreaded RPC Programming
8. Extensions to the Sun RPC Library
B. RPC Protocol and Language Specification
Directory Listing Program and Support Routines (rpcgen)
Spray Packets Program (rpcgen)
Print Message Program With Remote Version
F. Writing a Port Monitor With the Service Access Facility (SAF)
Example D-5 rpcgen program: Add Two Numbers
/* This program contains a procedure to add 2 numbers to demonstrate * some of the features of the new rpcgen. Note that add() takes 2 * arguments in this case. */ program ADDPROG { /* program number */ version ADDVER { /* version number */ int add ( int, int ) /* procedure */ = 1; } = 1; } = 199;