
LUC API Reference [H]
H.2 luc_allocate_endpoint Function
Use luc_allocate_endpoint to construct LucEndpoint objects. The
default value for LucServiceType is LUC_CLIENT_SERVER. See LUC Type
Definitions on page 159.
LucEndpoint *luc_allocate_endpoint(LucServiceType_t etype);
H.3 LUC Methods
The LucEndpoint class uses the following methods:
• startService
• stopService
• getMyEndpointID
• remoteCall
• remoteCallSync
• registerRemoteCall
• setConfigValue
• getConfigValue
H.3.1 startService Method
Initializes the LucEndpoint object.
Syntax
luc_error_t startService(uint_t threadCount=1,
ptl_pid_t requestedPid = PTL_PID_ANY);
This method puts the object into a state where it can initiate and respond to RPC
requests. It initializes internal network components and creates the required number
of threads. The MTK version of the library allocates I/O buffers for the endpoint as
part of this initialization.
For client only objects, the threadCount parameter is ignored.
The MTK version of the library ignores both parameters.
S–2479–20 149
Kommentare zu diesen Handbüchern