Back to product page

TransferProgress callback method


Called during file transfer.

Syntax

  • Basic
object.TransferProgress (Owner, Position, Total)
The TransferProgress(object,Owner,Position,Total) syntax has these parts:
objectAn expression evaluating to an object of type IwodTelnetNotify
OwnerAn expression evaluating to an object of type wodTelnetDLX
PositionA Long value. Current transfer position.
TotalA Long value. Total number of bytes that will be transferred.

Remarks

NOTE: This method is called only if you implemented IwodTelnetNotify interface in your application, and wodTelnet.Notification property has received reference to instance of your implementation.

TransferProgress notification method is called as progress indicator during the transfer initiated by SendFile/ReceiveFile methods. It will usually be called more than once, on variable positions. ZMODEM protocol, for example, sends different packet lengths depending on line speed and quality - and you cannot change these lengths.

It is possible that Position reverts back during the transfer - this happens if remote side didn't correctly receive our blindly sent packets, and we need to resend file from certain position.

When transfer finishes, TransferEnd notification method will be called. Same rules apply when file is being received.

Platforms

Windows