property OnProtocolLog : TProtocolLogEvent
TProtocolLogEvent = procedure(
CP : TObject; Log : Word) of object;
Defines an event handler that is called at well-defined points during a protocol transfer.
The primary purpose of this event is to give applications a chance to log statistical information about file transfers such as the transfer time and whether they succeeded or failed. Applications can also use this event for start-up and cleanup activities such as deleting partial files after unsuccessful downloads.
CP is the protocol component that needs to be logged. Log is a code that indicates the current state of the file transfer. The possible states are:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
No other information is passed along with the event. Use protocol status properties such as FileName and ElapsedMSecs to get additional information about the state of the transfer.
See "Protocol logging" in the printed documentation for more information.
See also: ProtocolLog