SmartFTP FTP Library
ITransferProgressEvents Interface Reference

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.

Detailed Description

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.

Member Function Documentation

◆ OnTransferProgress()

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).

Parameters
[in]bytesTransferredThe total number of bytes processed since the operation started.

The documentation for this interface was generated from the following file: