SetBufferSize Method of the IFWXConnection Interface
The SetBufferSize method sets the buffer size for a connection.
Syntax
HRESULT SetBufferSize(
[in] DWORD BufferSize
);
Parameters
- BufferSize
Buffer size to be used for this connection.
Return Value
S_OK
The method succeeded.E_INVALIDARG
Invalid value was passed to the method.
Remarks
This method allows you to modify the buffer size for a connection. By default, the service uses buffers of 4096 bytes for UDP and 2048 for TCP. UDP datagrams larger than the default buffer size are dropped by the service. Use this function to set a larger buffer size for protocols that use packets larger than 4096 bytes.
For TCP, the buffer size is used for optimization. In general, it should not be modified. For UDP, datagrams larger than the buffer size can be dropped. If the filter determines that larger datagrams can be transmitted, it should set the buffer size accordingly.
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
Send comments about this topic to Microsoft
Build date: 6/30/2010