IWMSIncomingCounters::AddIncomingData
Previous | Next |
IWMSIncomingCounters::AddIncomingData
The AddIncomingData method allows the server to keep track of data received from an incoming client connection.
Syntax
HRESULT AddIncomingData( DWORD dwDataLen );
Parameters
dwDataLen
[in] DWORD containing the amount of data to be added.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Remarks
The server can check that the current incoming bandwidth does not exceed the limit specified by the IWMSServerLimits::get_IncomingBandwidth method and update the IWMSServerCurrentCounters::get_IncomingBandwidth counter if the limit is not exceeded. This will never cause the server to decrement the IncomingBandwidth counter below the value that was allocated for the client by the IWMSIncomingCounters::AllocatedRequestedBandwidth method. The AddIncomingData method should be called every time that a data source plug-in receives data from the network.
Requirements
Header: wmsincomingcounters.h.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.
See Also
Previous | Next |