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
;