PowerTCP SSH and SFTP for .NET
ReadAheadBuffers Property




Gets or sets the number of maximum read commands to queue when a get operation is performed.
Syntax
'Declaration
 
<DefaultValueAttribute(3)>
Public Property ReadAheadBuffers As Integer
'Usage
 
Dim instance As Optimizations
Dim value As Integer
 
instance.ReadAheadBuffers = value
 
value = instance.ReadAheadBuffers
[DefaultValue(3)]
public int ReadAheadBuffers {get; set;}
[DefaultValue(3)]
public: __property int get_ReadAheadBuffers();
public: __property void set_ReadAheadBuffers( 
   int value
);
[DefaultValue(3)]
public:
property int ReadAheadBuffers {
   int get();
   void set (    int value);
}
Remarks

Defaults to 3. This optimization is the maximum amount of 32kb read requets that will be sent to the server at time. When a get operation is started, the size of the request file is queried and the appropriate number of read requests are sent. For example, if a file is less than 32kb in size, then only one read request will be issued. If a file's size can not be retrieved then a number of read requests eaul to this property's value will be issued. If compression is used, then extra read requests will be issued as there is no way to accurately predict the size of a compressed file.

Set to 0 to disable this optimization.

See BlockSize for notes on perfomance.

See Also

Reference

Optimizations Class
Optimizations Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic