IWMSServerLimits::put_OutgoingDistributionConnections

banner art

Previous Next

IWMSServerLimits::put_OutgoingDistributionConnections

The put_OngoingDistributionConnections method specifies the maximum number of distribution connections permitted by the server.

Syntax

  HRESULT put_OutgoingDistributionConnections(
  long  Val
);

Parameters

Val

[in] long containing the number of permitted connections. By default, the value of the parameter is –1, indicating that there is no limit on the number of connections.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Number Description
E_INVALIDARG 0x80070057 Indicates that newVal is an invalid argument.

Remarks

A distribution server can bypass this limit by identifying itself as a player. Therefore, it is recommended that you also use the IWMSServerLimits::put_ConnectedPlayers method to specify the maximum number of players that can connect. A distribution server can identify itself as a player by changing its user agent. For more information about user agents, see Identifying a Cache Proxy Server.

Example Code

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

Requirements

Header: wmsserver.h.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003 family, Windows Server 2008 family.

See Also

Previous Next