SmartFTP FTP Library
IGlobalSpeedLimit Interface

This interface is implemented by the GlobalSpeedLimit class.

IGlobalSpeedLimit
IDL
interface IGlobalSpeedLimit : IDispatch;

Use this interface to set the global speed limits for the data transfers.

C++

IGlobalSpeedLimitPtr pSpeedLimit;
if(SUCCEEDED(pSpeedLimit.CreateInstance(__uuidof(sfFTPLib::GlobalSpeedLimit))))
{
    try
    {
        pSpeedLimit->DownloadSpeedLimit = 10 * 1024; // 10 KB/s
        pSpeedLimit->UploadSpeedLimit = 15 * 1024; // 15 KB/s
    }
    catch(...) { }
}

 

VBScript

Dim obj
Set obj = CreateObject("sfFTPLib.GlobalSpeedLimit")

obj.DownloadSpeedLimit = 10 * 1024 ' 10 KB
obj.UploadSpeedLimit = 1 * 1024 ' 1 KB
IGlobalSpeedLimit Properties 
Description 
Specifies global download speed limit in bytes/second. 
Specifies global upload speed limit in bytes/second. 
What do you think about this topic? Send feedback!
Copyright (c) by SmartSoft Ltd. All rights reserved.