Events
FTP has the following events. The events are fired to the client application only in asynchronous mode (see synchronous property).
DownloadStatus
Notifies the client of the status of the current download. This event can be used to display a progress bar for example.
Prototype
void DownloadStatus (long nBytes)
Parameters
nBytes: Number of transferred bytes so far.
Return value
None.
EndOfFileTransfer
Notifies the client that the transfer is over.
Prototype
void EndOfFileTransfer (public System.Booleanean bOK,long nBytes)
Parameters
bOK: Indicates the status of the file transfer.
nBytes: Number of transferred bytes (if bOK is TRUE)
Return value
None.
FTPError
Notifies the client of the status of a problem during upload or download.
Prototype
void UploadStatus (long nBytes,long lPercentage)
Parameters
nBytes : Number of uploaded bytes so far.
nPercentage : Portion of the local file already uploaded
Return value
None.
UploadStatus
Notifies the client of the status of the current upload. This event can be used to display a progress bar for example.
Prototype
void FTPError (long nErrorCode.String strError)
Parameters
nErrorCode: Error number.
StrError: Explanation of the error.
Return value
None.