Typedefs | |
typedef _CMrpc_ticket_struct * | CMrpc_ticket |
Functions | |
CMrpc_ticket | CMrpc_call_rpc (CManager cm, const char *rpc_name, attr_list contact_info, void *in_data, void *out_data, unsigned long flags) |
void | CMrpc_call_rpc_oneway (CManager cm, const char *rpc_name, attr_list contact_info, void *in_data, unsigned long flags) |
int | CMrpc_register_rpc_contact_info (CManager cm, const char *rpc_name, attr_list contact_info) |
CMrpc_ticket | CMrpc_call_anon_rpc (CManager cm, const char *rpc_name, attr_list target_spec, IOContext anon_in_context, void *in_data, IOContext anon_out_context, void *out_data, unsigned long flags) |
int | CMrpc_redeem_ticket (CManager cm, CMrpc_ticket ticket, void *out_data, int wait) |
|
An asynchronous RPC ticket that can be later "redeemed" to retrieve the results of the RPC. |
|
Client-side "anonymous" RPC call. An anonymous call is a call to an RPC that is not registered; applications that will only make a single call to RPCs or call them only in rare cases may choose to use this interface. Note that callers must obtain their own IOContext and IOFormat values from either the CM or PBIO format registration interfaces. Operates in the same manner as CMrpc_call_rpc.
|
|
Client-side RPC call. Message formats and contact information for the RPC must be properly registered before calling this function. in_data and out_data must point to valid buffers corresponding to the registered message formats. If async is 1, the call is made asynchronously and the return value is a CMrpc_ticket that can be used to retrieve the results of the operation; otherwise, the call blocks until the results arrive and the return value is NULL. If async is 1 and the return value is NULL, an error occurred; check CMrpc_errno for an indication of the error.
|
|
Client-side RPC where no reply is expected. Otherwise functions similarly to CMrpc_call_rpc().
|
|
Asynchronous RPC ticket redemption. A valid CMrpc_ticket can be exchanged for operation results using this function. wait specifies whether the caller wishes to block until results are available or return immediately whether they are available or not. A NULL result indicates that the result was available and has been placed in out_data; otherwise, ticket is returned.
|
|
Used from client-side. Registers the given contact information for the specified rpc name. CM-RPC will use this contact information to establish a transport connection in CM.
|