
Section 6 Definitions of Server Functions
Rev. 1.01 Mar. 17, 2008 Page 88 of 128
REJ10J1822-0101
6.7.5
CLNTCOPYCBK (RPC Call by rpc_call_copycbk())
Format:
[CLNTCOPYCBK]<function 1> <function 2>
Description:
RPC calls are started by rpc_call_copycbk(). <function 1> and <function 2> are copy callback
functions specified in rpc_call_copycbk(). Specification of the two callback functions is
mandatory.
The prototype for the callback functions must conform with the RPC specifications and has to be
declared in a file included by the client stub.
Example:
Specification of a server function
int func(struct ST *ptr);
ptr is an array for output and has 10 elements, all of which are output by func. copy1() is used
for transfer from the client to the server while copy2() is used for transfer from the server to the
client.
Definition of the server function
int ret = func([OUT ARY]struct ST *ptr,[COUNT]10,
[COUNT]10)[
CLNTCOPYCBK] copy1 copy2
;
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: ......