Back to product page

BufferSize property


Determines size of incoming and outgoing buffers.

Type

A Long value. Specifies buffer size.

Syntax

  • Basic
object.BufferSize [= value]
The BufferSize(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodSFTP.
valueA Long value.

Remarks

Using the BufferSize property you can force wodSFTP to use a predefined buffer size for receiving and sending packets between wodSFTP and the server. Larger packets will usually give you faster transfers but this can also depend on your connection speed and on the server's capabilities.

Besides the speed of transfer, this value also determines how many times the Progress event will be fired during a transfer. If you are on a slow connection and need the Progress event to fire more times, lower the BufferSize value. The Progress event is fired after each packet is sent/received - so making smaller packets causes a higher Progress event rate.

If you set BufferSize to 0 (default value), wodSFTP will internally adjust its buffers to match the server's. This will usually be 32k buffers.

Platforms

Windows