Section 7 Server Functions Not Supported by RPCGEN
Rev. 1.01 Mar. 17, 2008 Page 89 of 128
REJ10J1822-0101
Section 7 Server Functions Not Supported by RPCGEN
This section gives the types of functions not supported by RPCGEN. If a server function you are
using falls under the definitions in this section, use SVRSTUB or CLNTSTUB so that RPCGEN
will not create a server or client stub for the server function. A substitute server or client stub must
be implemented by the user.
7.1
Parameter
RPCGEN is not capable of correctly creating a client or server stub for server functions that have
parameters of the following types.
(1) Parameters with data types of undefined size
RPCGEN cannot handle parameters with data types that have undefined size. When such a
parameter is a pointer, however, using REF allows the creation of stub code for passing of the
pointer itself.
Example:
Specification of a server function
int func(void *par);
The function takes ptr, a pointer to data of undefined size, as an input and returns an int-type
value.
Definition of the server function
int ret = func([
IN
PTR]void *par);
In this case, an error will occur in compilation of the client stub.
int ret = func([
IN
REF PTR]void *par);
In this case, code to pass the value of par to the server will be created.
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: ......