User`s guide

Cray XMT Programming Environment Users Guide
Return Codes
LUC_ERR_OK The remote procedure call was completed. Data may have been
returned.
LUC_ERR_NOT_STARTED
The service has not yet been started. This error is returned by the
stopService, To start the service, use the startService
method.
LUC_ERR_BAD_ADDRESS
Indicates an attempt to use a NULL input or output buffer while
specifying a non-zero size for the corresponding buffer.
asynchronous return codes
Any of the asynchronous calls return codes and completion handler
codes may be returned to indicate failures. Refer to the return codes
section in remoteCall Method on page 151.
application defined return codes
Any return codes defined by the application.
H.3.6 registerRemoteCall Method
Registers a remote application function with the server.
Syntax
luc_error_t registerRemoteCall(luc_service_type_t serviceType,
int serviceFunctionIndex,
LUC_RPC_Function_InOut theFunction);
This method registers the specified function to be executed whenever an incoming
request matches the specified service type and function index to be associated with
the application function.
This method operates independent of startService and stopService. It may
be called for an object in any state. (Remote procedure calls are unregistered only
when the object is destroyed).
154 S247920