Microsoft Internet Security and Acceleration Server 2004 SDK

IFWXConnection::SetBufferSize

The SetBufferSize method sets the buffer size for a connection.

HRESULT SetBufferSize(
  DWORD BufferSize
);

Parameters

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

Return 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

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Wspfwext.idl.

See Also

IFWXConnection