rpc_mgmt_inq_stats(3rpc)Returns RPC runtime statistics Used by client, server, or management applications. Synopsis #include <dce/rpc.h> void rpc_mgmt_inq_stats( rpc_binding_handle_t binding, rpc_stats_vector_t **statistics, unsigned32 *status); Parameters Input
binding If the binding handle you supply refers to partially bound binding information and the binding information contains a nil object UUID, this routine returns the rpc_s_binding_incomplete status code. In this case, the DCE host daemon does not know which server instance to select from the local endpoint map because the RPC management interface is automatically registered (by the RPC runtime) for all RPC servers. To avoid this situation, you can obtain a fully bound server binding handle by calling the rpc_ep_resolve_binding( ) routine. Output
statistics
status In addition to the above values, status can return the value of parameter status from the application-defined authorization function rpc_mgmt_authorization_fn_t( ). The prototype for such a function is defined in the authorization_fn parameter in the reference page for rpc_ mgmt_set_authorization_fn(3rpc).
Description The explanation of a statistics vector in rpc_intro(3rpc) lists the elements of the vector. The RPC runtime allocates memory for the statistics vector. The application calls the rpc_mgmt_stats_vector_free( ) routine to release the memory that the statistics vector used. By default, the RPC runtime allows all clients to remotely call this routine. To restrict remote calls of this routine, a server application supplies an authorization function using the rpc_mgmt_set_authorization_fn( ) routine.
Return Values Errors The following describes a partial list of errors that might be returned. Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages.
rpc_s_ok
rpc_s_binding_incomplete
rpc_s_comm_failure
rpc_s_invalid_binding
rpc_s_mgmt_op_disallowed
rpc_s_wrong_kind_of_binding
Related Information rpc_mgmt_set_authorization_fn(3rpc) rpc_mgmt_stats_vector_free(3rpc)
|