User`s guide

LUC API Reference [H]
H.3.5 remoteCallSync Method
Makes a synchronous remote procedure call.
Syntax
luc_error_t remoteCallSync(luc_endpoint_id_t serverEndpoint,
luc_service_type_t serviceType,
int serviceFunctionIndex,
void *inputData,
size_t inputDataLen,
void *outputData,
size_t *outputDataLen);
The synchronous procedure call is used in synchronous programming models or in
cases where the caller expects the remote function to return data.
This method is valid only on started objects. Multiple concurrent callers of this
method and the asynchronous version are supported.
Parameters
serverEndpoint
Specifies the endpoint identifier for the desired server of this RPC.
serviceType
serviceFunctionIndex
Specifies the particular remote function to invoke on a server
and its service type. The server uses the same values in its
registerRemoteCall method.
inputData
inputDataLen
Specify an optional pointer to input data and the length of the data.
outputData (input parameter)
Specifies an optional buffer for return data from the RPC.
outputDataLen (input/output parameter)
As an input parameter, specifies the maximum amount of data that
the application will accept from the RPC (the allocated size of
outputData). When remoteCallSync returns, this value will
be changed to the actual amount of returned data.
S247920 153