Unit:
AxProtcl
Description:
TApxProtocolLog is a small class that can be associated with a TApxProtocol component to provide automatic protocol logging services. Just create an instance of TApxProtocolLog and assign it to the ProtocolLog property of the TApxProtocol component.
TApxProtocolLog creates or appends to a text file whose name is given by the HistoryName property. Each time the OnProtocolLog event of TApxProtocol is generated, the associated TApxProtocolLog instance opens the file, writes a new line to it, and closes the file.
TApxProtocolLog also deletes the partial file that exists whenever a receive fails and the protocol type is not Zmodem (which can resume interrupted transfers).
The following is a sample of the text file created by TApxProtocolLog:
Zmodem transmit started on 7/6/95 8:33:21 AM : /tmp/PROJ1
Zmodem transmit finished OK 7/6/95 8:33:28 AM : /tmp/PROJ1
Elapsed time: 0:07 CPS: 1792 Size: 12547
Zmodem transmit started on 7/6/95 8:33:28 AM : /tmp/PROJ2
Zmodem transmit finished OK 7/6/95 8:33:37 AM : /tmp/PROJ2
Elapsed time: 0:08 CPS: 1971 Size: 15775
Zmodem transmit started on 7/6/95 8:33:37 AM : /tmp/PROJ2
Zmodem transmit failed C:\TEMP\PROJ2.EXE Cancel requested
Zmodem receive started on 7/6/95 8:34:03 AM : ZIPVO.PAS
Zmodem receive failed ZIPVO.PAS Cancel requested