Previous | Next |
To receive progress statistics about an ongoing file transfer, register the kind of transfer information you want with the FtsRegisterStatusCallback method. Typical kinds of requests include notifying the caller every time 100 kilobytes (KB) of the file are transferred, or every time 10 percent of the file transfer is finished.
Notifications can also be requested about the number of packets received, as well as the number of bogus packets (received on the same IP address and port, but not part of an expected file transfer operation), duplicate packets, dropped packets, and so on. Progress notifications are processed by the FtsOnTransferProgress event. Read the appropriate properties, and take the appropriate action in an FtsOnTransferProgress subroutine. You can revoke a progress notification by calling the FtsRevokeStatusCallback method.
Progress notifications trigger only the FtsOnTransferProgress event. The values of transfer progress properties (such as those of the NumPacketsDropped property) are always available.
Previous | Next |