Section 6 Definitions of Server Functions
Rev. 1.01 Mar. 17, 2008 Page 84 of 128
REJ10J1822-0101
Table 6.2 shows the available combinations of optional keywords.
Table 6.2 Combinations of Optional Keywords
SVRSTUB SVRFUNC CLNTSTUB UNACK CLNTCOPYCBK
SVRSTUB ⎯ 9 9 9
SVRFUNC 9 9 9
CLNTSTUB ⎯ ⎯
UNACK 9
CLNTCOPYCBK
9: Available
⎯: Not available (RPCGEN reports an error and terminates processing)
6.7.1 SVRSTUB (Server Stub)
Format:
[SVRSTUB] <server-stub function name>
Description:
A server stub provided by the user is to be used, so RPCGEN does not create a server stub.
Example:
Specification of a server function
int func(int par);
The function takes par as an input and returns a value of type int. RPCGEN will not create a
server stub for func (i.e. will not create func_svrstub) because the user will provide this server
stub.
Definition of the server function
int ret = func([IN DFLT]int par)[SVRSTUB]func_svrstub;