IWMSServerPeakCounters Interface
Previous | Next |
IWMSServerPeakCounters Interface
You can use the IWMSServerPeakCounters interface to retrieve properties that contain information about peak events that occur during server operation.
In addition to the methods inherited from IDispatch, the IWMSServerPeakCounters interface exposes the following methods.
Method | Description |
get_AllCounters | Retrieves an array that contains all of the counters supported by the interface. |
get_ConnectedPlayers | Retrieves the maximum number of players that have simultaneously connected to the server since the last reset. |
get_CountersStartTime | Retrieves the date and time at which the server started monitoring the peak counters. |
get_OutgoingDistributionAllocatedBandwidth | Retrieves the maximum bandwidth allocated to distribution connections since the last reset. |
get_OutgoingDistributionConnections | Retrieves the maximum number of simultaneous distribution connections since the last reset. |
get_OutgoingDistributionSendRate | Retrieves the maximum number of bytes per second sent to distribution connections since the last reset. |
get_PlayerAllocatedBandwidth | Retrieves the maximum bandwidth allocated to player connections since the last reset. |
get_PlayerSendRate | Retrieves the maximum number of bytes per second sent to player connections since the last reset. |
get_StreamingPlayers | Retrieves the maximum number of players that received content from the server simultaneously since the last reset. |
get_StreamingHTTPPlayers | Retrieves the maximum number of players that received content by using the HTTP protocol from the server simultaneously since the last reset. |
get_StreamingRTSPPlayers | Retrieves the maximum number of players that received content by using the RTSP protocol from the server simultaneously since the last reset. |
get_StreamingUDPPlayers | Retrieves the maximum number of players that received content by using the User Datagram Protocol (UDP) from the server simultaneously since the last reset. |
Reset | Resets the counters to the current values. |
Example Code
The following example illustrates how to retrieve a pointer to an IWMSServerPeakCounters interface.
#include <windows.h> #include "wmsserver.h" // Declare variables and interfaces. IWMSServer *pServer; IWMSServerPeakCounters *pPeakCounters; 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 peak statistics // for the server. hr = pServer->get_PeakCounters(&pPeakCounters); if (FAILED(hr)) goto EXIT; EXIT: // TODO: Release temporary COM objects and uninitialize COM.
See Also
Previous | Next |