
Section 8 Application Interface
Rev. 1.01 Mar. 17, 2008 Page 93 of 128
REJ10J1822-0101
Section 8 Application Interface
8.1
Client-Stub Functions Generated by RPCGEN
The client-stub functions are called by the client application.
This section gives the specifications for the client-stub functions generated by RPCGEN. The
client-stub functions must be called in accord with the definitions in these specifications. If
CLNTSTUB is used to prevent creation of client-stub functions, the user must implement client-
stub functions in accord with the specifications.
For details on SVR_AUTH, refer to section 5.5.8, SVR_AUTH.
(1) When SVR_AUTH has not been specified
Each of the client-stub functions has the same API as the actual server function. RPCGEN outputs
the client-stub functions themselves to <config file>_clnt.c but does not output prototype
declarations. Prepare a header file with the required prototype declarations and specify this header
file in the definition of CLNT_INCFILE or GLOBAL_INCFILE.
Example:
Contents of a config file
SVR_NAME{ EXAMPLE };
SVR_ID{ 1 };
SVR_VERSION{ 2 };
// SVR_AUTH;
RPC_FUNC{
int ret = func1([IN DFLT]int par1, [IN DFLT]int par2);
func2([OUT PTR]struct ST *ptr);
};
Specification of a client-stub function
int func1(int par1, int par2);
void func2(struct ST *ptr);
Содержание Stub Generator REJ10J1822-0101
Страница 4: ......
Страница 6: ......
Страница 12: ...vi ...
Страница 16: ...Section 2 Installation Rev 1 01 Mar 17 2008 Page 4 of 128 REJ10J1822 0101 ...
Страница 34: ...Section 4 Executing RPCGEN Rev 1 01 Mar 17 2008 Page 22 of 128 REJ10J1822 0101 ...
Страница 60: ...Section 5 Specifications of a Config File Rev 1 01 Mar 17 2008 Page 48 of 128 REJ10J1822 0101 ...
Страница 104: ...Section 7 Server Functions Not Supported by RPCGEN Rev 1 01 Mar 17 2008 Page 92 of 128 REJ10J1822 0101 ...
Страница 118: ...Section 9 Notes Rev 1 01 Mar 17 2008 Page 106 of 128 REJ10J1822 0101 ...
Страница 131: ...Section 11 Samples Rev 1 01 Mar 17 2008 Page 119 of 128 REJ10J1822 0101 ...
Страница 140: ...Section 11 Samples Rev 1 01 Mar 17 2008 Page 128 of 128 REJ10J1822 0101 ...
Страница 143: ......
Страница 144: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan Stub Generator V 1 00 REJ10J1822 0101 User s Manual ...