Main Page | Class Hierarchy | Class List | Class Members

TraceOutput Class Reference

Inheritance diagram for TraceOutput:

StdTraceOutput List of all members.

Detailed Description

TraceOutput is an abstract base class that defines the interface for the trace output facility in Hunny Mail++.

Trace output displays the network communication between the client and server. It is therefore an essential tool for debugging.

Hunny Mail++ allows you to integrate trace output with your own debugging output facility. To do this, you must define a subclass of TraceOutput, create an instance of that class, and call one of the member functions Imap4Client::SetTraceOutput(), NntpClient::SetTraceOutput(), Pop3Client::SetTraceOutput(), or SmtpClient::SetTraceOutput() to install your TraceOutput instance.

To send trace output to standard output, you may use the library's StdTraceOutput class.


Public Member Functions

virtual ~TraceOutput ()
 Destructor.
virtual void Send (const char *buffer, unsigned length)=0
 Logs the client-to-server stream.
virtual void Receive (const char *buffer, unsigned length)=0
 Logs the server-to-client stream.


Constructor & Destructor Documentation

~TraceOutput  )  [virtual]
 

Destructor.


Member Function Documentation

Receive const char *  buffer,
unsigned  length
[pure virtual]
 

Logs the server-to-client stream.

The library calls this virtual function when it receives bytes over the network from the server.

Parameters:
buffer buffer that contains the bytes
length number of bytes in the buffer

Implemented in StdTraceOutput.

Send const char *  buffer,
unsigned  length
[pure virtual]
 

Logs the client-to-server stream.

The library calls this virtual function when it sends bytes over the network to the server.

Parameters:
buffer buffer that contains the bytes
length number of bytes in the buffer

Implemented in StdTraceOutput.

Copyright © 2001-2005 Hunny Software, Inc. All rights reserved.