IFWXConnection::SetBufferSize method

Applies to: desktop apps only

The SetBufferSize method sets the buffer size for a connection.

Syntax

HRESULT SetBufferSize(
  [in]  DWORD BufferSize
);

Parameters

  • BufferSize [in]
    Buffer size to be used for this connection.

Return value

This method can return one of these values.

  • 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

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

Header

Wspfwext.idl

DLL

Wspsrv.exe

See also

IFWXConnection

 

 

Build date: 7/12/2010