Internet Direct (Indy) Version 9.0.1 Beta
TIdTunnelSlave.GetStatistics
Gets statistical measurements for the server.

procedure GetStatistics(Module: Integer; var Value: Integer);
Parameters
Module: Integer
Statistic type requested.

var Value: Integer
Value for the requested statistic type.

Description
GetStatistics is a procedure used to retrieve statistical information for the TIdTunnelSlave instance.

Module is an Integer that represents one of the statistic type constant values from IdTunnelCommon.pas, and normally contains on of the following values:

CompressionRatioType returns a calculated value that represents the ratio of total number of bytes read to compressed bytes read.

Value is an Integer variable used to return the value for the selected statistic type.

GetStatistics uses the StatisticsLocker cortical section to protect access to the server resources from multiple threads.