User`s guide

Cray XMT Programming Environment Users Guide
H.5.3 LUC_Completion_Handler
The LUC_Completion_Handler callback function is used by a client for
asynchronous remote procedure calls.
LUC_Mem_Avail_Completion
Syntax
typedef void (*LUC_Completion_Handler)
(luc_endpoint_id_t originalDestAddr,
luc_service_type_t originalServiceType,
int originalFunctionIndex,
void * userHandle,
luc_error_t remoteError);
The LUC runtime will call the function specified in the remoteCall method that
follows this signature when the remote call has completed.
Parameters
originalDestAddr
originalServiceType
originalFunctionIndex
Specifies the destination address, service type, and function index.
LUC passes in the values used by the remoteCall method that
initiated this RPC being completed.
userHandle LUC passes in the value specified by the remoteCall method that
initiated this RPC being completed.
remoteError
The ultimate error code for the RPC from either the LUC library or
the server application's registered function. All of the values returned
by remoteCallSync (including application defined return codes)
may be specified here.
H.6 LUC Return Codes
The meaning of some predefined return codes are dependent on the method that
returns the code. Applications may define application specific codes.
LUC_ENDPOINT_INVALID
Indicates that the object has not been started and does not have a
valid endpoint identifier.
162 S247920