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.
Summary of Contents for Stub Generator REJ10J1822-0101
Page 4: ......
Page 6: ......
Page 12: ...vi ...
Page 16: ...Section 2 Installation Rev 1 01 Mar 17 2008 Page 4 of 128 REJ10J1822 0101 ...
Page 34: ...Section 4 Executing RPCGEN Rev 1 01 Mar 17 2008 Page 22 of 128 REJ10J1822 0101 ...
Page 60: ...Section 5 Specifications of a Config File Rev 1 01 Mar 17 2008 Page 48 of 128 REJ10J1822 0101 ...
Page 118: ...Section 9 Notes Rev 1 01 Mar 17 2008 Page 106 of 128 REJ10J1822 0101 ...
Page 131: ...Section 11 Samples Rev 1 01 Mar 17 2008 Page 119 of 128 REJ10J1822 0101 ...
Page 140: ...Section 11 Samples Rev 1 01 Mar 17 2008 Page 128 of 128 REJ10J1822 0101 ...
Page 143: ......