Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodSFTP
- Methods
- Abort
- About
- AppendData
- AppendFile
- Connect
- DeleteFile
- DeleteFiles
- Disconnect
- ExtendedCmd
- GetAttributes
- GetData
- GetDataAt
- GetFile
- GetFileAt
- GetFiles
- ListAttributes
- ListDir
- ListNames
- LoopFiles
- MakeDir
- PutData
- PutDataAt
- PutFile
- PutFileAt
- PutFiles
- RealPath
- RemoteClose
- RemoteOpen
- RemoteRead
- RemoteWrite
- RemoveDir
- Rename
- SetAttributes
- SetAttributes64
- Properties
- Authentication
- Blocking
- BufferSize
- ClientName
- Compression
- Encryption
- EncryptionList
- ErrorText
- Extensions
- FingerPrint
- FIPS
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeySignatureList
- LastError
- ListItem
- LocalPath
- Login
- MaxTransferRate
- MyHostname
- MyIP
- Notification
- Password
- Port
- PrivateKey
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- RemotePath
- Resume
- ServerErrorCode
- ServerErrorText
- State
- StateText
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Events
- Methods
- IwodSFTPNotify
- SftpItem
- SftpItems
- How to get support?
- Technical information
- Fast notifications interface
- Error list
MaxTransferRate property
Determines maximum upload/download speed.
Type
A Long value. Specifies maximum upload/download speed, in bytes/sec.Syntax
- Basic
object.MaxTransferRate [= value]
The MaxTransferRate(object,value) syntax has these parts:
The MaxTransferRate(object,value) syntax has these parts:
object | An expression evaluating to an object of type wodSFTP. |
value | A Long value. |
Remarks
MaxTransferRate defines how much maximum bandwidth wodSFTP can use. It is presented as 'bytes per second', both for upload and download. When set to 0 (default value), there is no bandwidth limit.You can change this property at any time, and wodSFTP will be affected immediately. If you calculate current speed, you could do that from the Progress event. If you want to restrict speed for, for example, only downloads, you can set MaxTransferRate property just before calling GetFile. Same applies for PutFile as well. Please note that if Compression property was set, Progress event calculations will show much higher speed than real one. If you want to get accurate information, set Compression to 0.
To get correct kilobytes and megabytes per second values, you should multiply desired bps rate with 1024 or 1024^2, not 1000.
Your calculated bps values may have up to 10% difference than your MaxTransferRate setting.