Поделиться через


IWMSPublishingPointLimits Interface

You can use the IWMSPublishingPointLimits interface to specify and retrieve the maximum bandwidth and number of connections supported by the server.

In addition to the methods inherited from IDispatch, the IWMSPublishingPointLimits interface exposes the following methods.

Method

Description

get_ConnectedPlayers

Retrieves the largest number of players that can be simultaneously connected to the publishing point.

get_FECPacketSpan

Retrieves the maximum number of data packets that can be buffered before error correction is applied.

get_OutgoingDistributionBandwidth

Retrieves the maximum total distribution bandwidth permitted for the publishing point.

get_OutgoingDistributionConnections

Retrieves the maximum number of distribution connections permitted for the publishing point.

get_PerOutgoingDistributionConnectionBandwidth

Retrieves the maximum bandwidth permitted for a distribution connection on the publishing point.

get_PerPlayerConnectionBandwidth

Retrieves the maximum bandwidth permitted for a player connection on the publishing point.

get_PerPlayerRapidStartBandwidth

Retrieves the rapid starting bandwidth permitted for a player connection on the publishing point.

get_PlayerBandwidth

Retrieves the maximum total player bandwidth permitted for the publishing point.

get_PlayerCacheDeliveryRate

Retrieves the maximum content-delivery rate that a player can request.

put_ConnectedPlayers

Specifies the largest number of players that can be simultaneously connected to the publishing point.

put_FECPacketSpan

Specifies the maximum number of data packets that can be buffered before error correction is applied.

put_OutgoingDistributionBandwidth

Specifies the maximum total distribution bandwidth permitted for the publishing point.

put_OutgoingDistributionConnections

Specifies the maximum number of distribution connections permitted for the publishing point.

put_PerOutgoingDistributionConnectionBandwidth

Specifies the maximum bandwidth permitted for a distribution connection on the publishing point.

put_PerPlayerConnectionBandwidth

Specifies the maximum bandwidth permitted for a player connection on the publishing point.

put_PlayerBandwidth

Specifies the maximum total player bandwidth permitted for the publishing point.

put_PlayerCacheDeliveryRate

Specifies the maximum content-delivery rate that a player can request.

Example

The following example illustrates how to retrieve a pointer to an IWMSPublishingPointLimits interface.

#include <windows.h>
#include <atlbase.h>    // Includes CComVariant.
#include "wmsserver.h"

// Declare variables and interfaces.
IWMSServer                  *pServer;
IWMSPublishingPoints        *pPubPoints;
IWMSPublishingPoint         *pPubPoint;
IWMSPublishingPointLimits   *pLimits;

HRESULT         hr;
CComVariant     varIndex;
long            lCount;

// 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 the IWMSPublishingPoints interface
// and retrieve the total count of publishing points.
hr = pServer->get_PublishingPoints(&pPubPoints);
if (FAILED(hr)) goto EXIT;
hr = pPubPoints->get_Count(&lCount);
if (FAILED(hr)) goto EXIT;

// Retrieve information about each publishing point.
for (long x = 0; x < lCount; x++)
{
    varIndex = x;
    hr = pPubPoints->get_Item(varIndex, &pPubPoint);
    if (FAILED(hr)) goto EXIT;

    // Retrieve a pointer to the IWMSPublishingPointLimits
    // interface for the publishing point.
    hr = pPubPoint->get_Limits(&pLimits);
    if (FAILED(hr)) goto EXIT;

    // Release temporary COM objects.
    pPubPoint->Release();
    pLimits->Release();
}

EXIT:
    // TODO: Release temporary COM objects and uninitialize COM.

See Also

Reference

IWMSPublishingPoint Interface

IWMSServerLimits Interface

Concepts

Server Object Model Interfaces (C++)