:GetBufferSize()


Class

     aprFTP()

 

Syntax

     :GetBufferSize( [hSession] ) -> nBuffSize

 

Parameters

 

hSession

Optional: If hSession is not passed, the value in :Session will be used

 

Return

Size of internal buffer, in Bytes.

 

Description

The :GetBufferSize() method returns the size in bytes of an internal buffer that will be used during data transfers.

 

The speed of data transfers, particularly on uploads, may be sensitive to network type and configuration, and the size of the internal buffer used for data transfers. The default size of this buffer will result in good performance for a wide range of network characteristics. A larger buffer will not necessarily result in better performance. For example, a value of 1460, which is the typical Maximum Transmission Unit (MTU), may be optimal in many situations.

 

See Also

:SetBufferSize()