Section 6 Definitions of Server Functions
Rev. 1.01 Mar. 17, 2008 Page 79 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);
__ulInputParam= ALIGNUP4(sizeof(*ptr) * ((UINT32)(inf->count)));
}
...
ret
= func( inf,
ptr
);
__pInfo->pOutputIOVectorTable[ __ulOutputParamCount ].pBaseAddress =
ptr
;
if (((UINT32)(ret )) > 0UL)
{
__pInfo->pOutputIOVectorTable[ __ulOutputPar+ ].ulSize = sizeof(
*ptr
) *
((UINT32)(
ret
));
}
else
{
__pInfo->pOutputIOVectorTable[ __ulOutputPar+ ].ulSize = 0UL;
}
__pInfo->ulOutputIOVectorTableSize = 1UL;
return ((UINT32)
ret
);
}
Figure 6.7 Code Output to the Server Stub (INOUT) for Second COUNT
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: ......