FTP Event Programming

The FTP class allows for minimal event handling during file up and download operations. Using FTPGetFileEx and FTPSendFileEx data is downloaded in configurable chunk sizes. After each chunk is retrieved the OnFTPBufferUpdate event fires, which receives information about the current request. It returns the number of bytes already sent, the numbe of chunks and the current buffer available. In addtion, this method allows the ability to set the lCancelDownload property to .T. to force the current request to be aborted and returning control to the calling code.


© West Wind Technologies, 2023 • Updated: 06/09/11
Comment or report problem with topic