IWMSServerTotalCounters Interface
You can use the IWMSServerTotalCounters interface to retrieve properties that contain information about totals that occur during server operation.
In addition to the methods inherited from IDispatch, the IWMSServerTotalCounters interface exposes the following methods.
Method |
Description |
---|---|
get_Advertisements |
Retrieves the cumulative number of advertisements that have been streamed from playlists since the last reset. |
get_AllCounters |
Retrieves an array that contains all of the counters supported by the interface. |
get_ConnectedPlayers |
Retrieves the total number of players connected to the server since the last reset. |
get_CountersStartTime |
Retrieves the date and time that the server started monitoring the total counters. |
get_LateReads |
Retrieves the total number of read operations that took longer than 400 milliseconds. |
get_LateSends |
Retrieves the total number of late send operations since the last reset. |
get_OutgoingDistributionBytesSent |
Retrieves the total number of bytes sent to distribution connections since the last reset. |
get_OutgoingDistributionConnections |
Retrieves the total number of distribution connections established since the last reset. |
get_PlayerBytesSent |
Retrieves the total number of bytes sent to players since the last reset. |
get_StreamDenials |
Retrieves the total number of stream transmissions denied since the last reset. |
get_StreamErrors |
Retrieves the total number of dropped-packet errors since the last reset. |
get_StreamingPlayers |
Retrieves the total number of players that have streamed content from the server since the last reset. |
get_StreamingHTTPPlayers |
Retrieves the total number of players that have streamed content by using the HTTP protocol from the server since the last reset. |
get_StreamingRTSPPlayers |
Retrieves the total number of players that have streamed content by using the RTSP protocol from the server since the last reset. |
get_StreamingUDPPlayers |
Retrieves the total number of players that have streamed content by using the User Datagram Protocol (UDP) from the server since the last reset. |
get_StreamTerminations |
Retrieves the total number of stream transmissions that have been terminated since the last reset. |
get_UDPResendRequests |
Retrieves the number of User Datagram Protocol (UDP) resend requests received since the last reset. |
get_UDPResendsSent |
Retrieves the number of UDP resend requests processed since the last reset. |
Reset |
Resets the counters to the current values. |
Example
The following example illustrates how to retrieve a pointer to an IWMSServerTotalCounters interface.
#include <windows.h>
#include "wmsserver.h"
// Declare variables and interfaces.
IWMSServer *pServer;
IWMSServerTotalCounters *pTotalCounters;
HRESULT hr;
// Initialize the COM library and retrieve a pointer
// to an IWMSServer interface.
hr = CoInitialize(NULL);
hr = CoCreateInstance(CLSID_WMSServer,
NULL,
CLSCTX_ALL,
IID_IWMSServer,
(void **)&pServer);
if (FAILED(hr)) goto EXIT;
// Retrieve a pointer to a list of total statistics
// for the server.
hr = pServer->get_TotalCounters(&pTotalCounters);
if (FAILED(hr)) goto EXIT;
EXIT:
// TODO: Release temporary COM objects and uninitialize COM.