IncrementBytesSentCounter Method of the IFWXConnection Interface

The IncrementBytesSentCounter method updates the counter with how many bytes have been sent over an emulated connection.

Syntax

HRESULT IncrementBytesSentCounter(
	DWORD dwBytesSent
);

Parameters

dwBytesSent

The number of bytes sent since the counter was last updated.

Return Value

S_OK

The method succeeded

FWX_E_NOT_EMULATED

The connection is not emulated.

Remarks

This method is used by application filters that use connection emulation. In an emulated connection, Forefront TMG does not have access to the emulated external socket associated only with the application filter and does not count bytes sent through that socket. The filter must call this function to count bytes sent on behalf of the client on the emulated connection. The total count appears in the log file in the bytes sent column.

Requirements

Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXConnection
EmulateConnection


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.