WebSetBuffer Function

Action

Determines the size of the buffers used to receive Internet traffic. By default, the size of both buffers is set to 8 KB each.

Note: Since Silk Performer allocates two buffers in addition to the WinSock buffers for handling Internet traffic, you need for each connection four times as much system memory as you specify through this function.

Include file

WebAPI.bdh

Syntax

WebSetBuffer( in nBuffer : number,
              in nSize   : number ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
nBuffer

Specifies which buffer size to set. The following options are possible:

  • WEB_BUFFER_SOCKET. Sets the buffers used for receiving Internet traffic.

nSize Buffer size in bytes.

Example

dcltrans
  transaction TMain
  begin
    // set size of buffers to 32 KB each
    WebSetBuffer(WEB_BUFFER_SOCKET, 32768);
    WebUrl("http://www.MyCompany.com");
  end TMain;