v
6.7 Optional Keywords............................................................................................................. 83
6.7.1 SVRSTUB (Server Stub).................................................................................... 84
6.7.2 SVRFUNC (Server Function Name).................................................................. 85
6.7.3 CLNTSTUB (Client Stub).................................................................................. 86
6.7.4 UNACK (Asynchronous Call)............................................................................ 87
6.7.5 CLNTCOPYCBK (RPC Call by rpc_call_copycbk())........................................88
Section 7 Server Functions Not Supported by RPCGEN......................................89
7.1 Parameter............................................................................................................................ 89
7.2 Return Value....................................................................................................................... 91
Section 8 Application Interface .............................................................................93
8.1 Client-Stub Functions Generated by RPCGEN.................................................................. 93
8.2 Server-Stub Functions Generated by RPCGEN..................................................................95
8.3 Server-Initialization Function............................................................................................. 96
8.4 Server-Stub Function Table................................................................................................ 97
8.5 Server-Shutdown Function................................................................................................. 99
8.6 Client-Initialization Function............................................................................................ 100
8.7 Client-Shutdown Function................................................................................................ 101
8.8 rpc_retval_adr()................................................................................................................ 102
8.9 <Config file>_public.h......................................................................................................104
8.10 Local Variables Used in the Source Code Created by RPCGEN......................................104
Section 9 Notes ....................................................................................................105
Section 10 Error Messages...................................................................................107
10.1 Format............................................................................................................................... 107
10.2 General..............................................................................................................................108
10.3 Definition Errors (other than RPC_FUNC)...................................................................... 108
10.4 Definition Errors (RPC_FUNC)....................................................................................... 108
Section 11 Samples..............................................................................................109
11.1 Config File (sample.x)...................................................................................................... 110
11.2 sample_clnt.h.................................................................................................................... 112
11.3 sample_private.h............................................................................................................... 113
11.4 sample_clnt.c.................................................................................................................... 114
11.5 sample_svr.h..................................................................................................................... 120
11.6 sample_svr.c..................................................................................................................... 122
11.7 sample_public.h................................................................................................................ 127