|
SmartFTP FTP Library
|
A callback interface for monitoring data transfer progress. More...
import "sfFTPLib.idl";
Public Member Functions | |
| HRESULT | OnTransferProgress ([in] ULONGLONG bytesTransferred) |
| Called periodically by the component to report transfer progress. | |
A callback interface for monitoring data transfer progress.
The Mechanism: You implement this interface in your own class and pass a pointer to it when calling methods like ISFTPConnection::DownloadFileEx, IFTPConnection::DownloadFileEx. The component then calls your implementation of OnTransferProgress periodically as data is sent or received.
| HRESULT ITransferProgressEvents::OnTransferProgress | ( | [in] ULONGLONG | bytesTransferred | ) |
Called periodically by the component to report transfer progress.
Frequency: The frequency of this call depends on the internal buffer size and network speed. It is called once per chunk (e.g., every 32KB - 64KB).
The Value: The bytesTransferred parameter reports the total cumulative bytes transferred for the current operation so far. It is monotonic (always increasing).
| [in] | bytesTransferred | The total number of bytes processed since the operation started. |