srv_sendstatistics

Sends Open Data Services statistics to the client in table format.

Syntax

int srv_sendstatistics ( SRV_PROC * srvproc );

where

srvproc
Is a pointer to the SRV_PROC structure that is the handle for a particular client connection. The structure contains the information that the Open Data Services Library uses to manage communication and data between the application and the client.

Returns

SUCCEED or FAIL.

Remarks

The srv_sendstatistics function returns statistics about the Open Data Services server application's workload. The statistics are returned in table format with the first column listing the statistic name and the second column showing its value. The following table describes the statistics returned:

Statistic name Return value
max worker threads The highest number of worker threads servicing the command queue since the Open Data Services server application was started or since the last time an srv_clearstatistics call was issued.
network reads The total number of reads from the network device.
network writes The total number of writes from the network device.
worker threads The current number of worker threads servicing the command queue.

See Also

This entry For information about
srv_clearstatistics Resetting the statistical counters