Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rpc_mgmt_inq_stats(3) — OSF1 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rpc_ep_resolve_binding(3)

rpc_mgmt_set_authorization_fn(3)

rpc_mgmt_stats_vector_free(3)

rpc_mgmt_inq_stats(3)  —  Subroutines

NAME

rpc_mgmt_inq_stats - 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

bindingSpecifies a binding handle.  To receive statistics about a remote application, specify a server binding handle for that application. To receive statistics about your own (local) application, specify NULL.  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 RPC daemon (RPCD) 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 routine rpc_ep_resolve_binding. 

Output

statisticsReturns the statistics vector for the server specified by the binding argument. Each statistic is a value of the type unsigned32. 

statusReturns the status code from this routine.  This status code indicates whether the routine completed successfully or, if not, why not.  The possible status codes and their meanings are as follows:

rpc_s_okSuccess. 

rpc_s_binding_incomplete
Binding incomplete (no object ID and no endpoint).

rpc_s_comm_failureCommunications failure. 

rpc_s_invalid_bindingInvalid binding handle. 

rpc_s_not_authorizedNot authorized for operation. 

rpc_s_wrong_kind_of_binding
Wrong kind of binding for operation.

DESCRIPTION

The rpc_mgmt_inq_stats routine returns statistics from the RPC runtime about a specified server. 

The explanation of a statistics vector in the rpc_intro(3) reference page 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

None. 

RELATED INFORMATION

Functions: rpc_ep_resolve_binding(3), rpc_mgmt_set_authorization_fn(3), rpc_mgmt_stats_vector_free(3)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026