
Section 6 Definitions of Server Functions
Rev. 1.01 Mar. 17, 2008 Page 68 of 128
REJ10J1822-0101
UINT32 rpcsvr_SMPL_func( rpc_server_stub_info * __pInfo )
{
...
inf = (struct INF *)( __pInfo->pucPar __ulInputParamOffset);
__ulInputParam= ALIGNUP4(sizeof(*inf));
if (((UINT32)(
inf->count
)) > 0UL)
{
ptr
= (struct ST *)( __pInfo->pucPar __ulInputParamOffset);
}
...
ret = func( inf,
ptr
);
...
return ((UINT32)ret);
}
Figure 6.3 Code Output to the Server Stub (IN) for COUNT
Examples:
Example 1
Specification of a server function
int func(struct ST *ptr);
Pointer ptr to an array of 10 elements of the structure type (ST) will be passed.
Definition of the server function
int ret = func([IN ARY]struct ST *ptr, [
COUNT
]10);
Содержание 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 ...