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 succeededFWX_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 R2 or Windows Server 2008 x64 Edition with SP2. |
Version | Requires Forefront Threat Management Gateway (TMG) 2010. |
Header | Declared in Wspfwext.idl. |
DLL | Requires Wspsrv.exe. |
See Also
IFWXConnection
EmulateConnection
Send comments about this topic to Microsoft
Build date: 6/30/2010