Section 6 Definitions of Server Functions
Rev. 1.01 Mar. 17, 2008 Page 83 of 128
REJ10J1822-0101
Example 8
Specification of a server function
int func(struct INF *inf, struct ST *ptr);
ptr points to an array for input and output and inf indicates other input information, including a
type-int member count, which indicates the number of elements in the array pointed to by ptr.
The return value indicates the number of elements to be output.
Definition of the server function
int ret = func([IN PTR]struct INF *inf, [INOUT ARY]struct ST *ptr,
[COUNT
]inf->count, [COUNT]ret );
6.7 Optional Keywords
The following optional keywords are available to control output to the client or server stub for the
individual server functions.
• SVRSTUB: Server stub
• SVRFUNC: Server function name
• CLNTSTUB: Client stub
• UNACK: Asynchronous call
• CLNTCOPYCBK: RPC call by rpc_call_copycbk()
Two or more optional keywords may be specifiable. Note, however, that the same keyword must
not be used more than once. When a combination of keywords specified by the user is not valid,
RPCGEN shows an error message and terminates processing.
Multiple keywords must be delimited by commas.