Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ippEngine Class Reference

Inheritance diagram for ippEngine:

ippObject ippSimpleClient ippSimpleServer ippSpyClient ippSpyServer List of all members.

Public Member Functions

 ippEngine ()
virtual ~ippEngine ()
void setLogger (ippLogger *logger)
ippLoggerGetLogger () const
void LogMessage (const char *data1, const char *data2=0)
virtual void HeartBeat ()=0
void ProbeConnection ()

Protected Member Functions

virtual void ProcessLine (const char *inputline)=0
virtual void ProcessMisformedLine (const char *inputline)=0
virtual void OnConnectionLost ()
void PerformRead ()

Protected Attributes

ippSocket _socket

Constructor & Destructor Documentation

ippEngine::ippEngine  ) 
 

Definition at line 21 of file ippEngine.cpp.

ippEngine::~ippEngine  )  [virtual]
 

Definition at line 28 of file ippEngine.cpp.

References _socket, and ippSocket::Close().


Member Function Documentation

ippLogger * ippEngine::GetLogger  )  const
 

Definition at line 170 of file ippEngine.cpp.

virtual void ippEngine::HeartBeat  )  [pure virtual]
 

Implemented in ippSimpleClient, ippSimpleServer, ippSpyServer, and ippSpyClient.

void ippEngine::LogMessage const char *  data1,
const char *  data2 = 0
 

Definition at line 38 of file ippEngine.cpp.

References ippLogger::WriteLine().

Referenced by ippSpyClient::Disconnect(), ippSimpleClient::Disconnect(), ippSpyServer::OnClientConnected(), ippSpyServer::OnClientDisconnected(), ippSimpleServer::OnClientDisconnected(), ippSimpleClient::OnConnectionLost(), ippSimpleClient::ProcessLine(), ippSimpleClient::ProcessMisformedLine(), ippSpyClient::SendCommand(), and ippSimpleClient::SendCommand().

void ippEngine::OnConnectionLost  )  [protected, virtual]
 

Reimplemented in ippSimpleClient, and ippSpyServer.

Definition at line 151 of file ippEngine.cpp.

Referenced by ippSpyServer::OnConnectionLost(), and ProbeConnection().

void ippEngine::PerformRead  )  [protected]
 

common input reader used by server and client objects

Definition at line 53 of file ippEngine.cpp.

References IPP_ASSERT, IPPSIZE, ProcessLine(), and ProcessMisformedLine().

Referenced by ippSpyServer::HeartBeat(), ippSpyClient::HeartBeat(), ippSimpleServer::HeartBeat(), and ippSimpleClient::HeartBeat().

void ippEngine::ProbeConnection  ) 
 

Definition at line 155 of file ippEngine.cpp.

References _socket, ippSocket::Close(), ippSocket::IsValid(), OnConnectionLost(), and ippSocket::Ping().

Referenced by ippSpyClient::Disconnect(), ippSimpleClient::Disconnect(), ippSpyServer::HeartBeat(), ippSimpleServer::HeartBeat(), and ippSimpleServerTestCase::testSimpleServer1().

virtual void ippEngine::ProcessLine const char *  inputline  )  [protected, pure virtual]
 

Implemented in ippSimpleClient, ippSpyServer, and ippSpyClient.

Referenced by PerformRead().

virtual void ippEngine::ProcessMisformedLine const char *  inputline  )  [protected, pure virtual]
 

Implemented in ippSimpleClient, ippSpyServer, and ippSpyClient.

Referenced by PerformRead().

void ippEngine::setLogger ippLogger logger  ) 
 

Definition at line 33 of file ippEngine.cpp.

Referenced by ippSimpleServerTestCase::testSimpleServer2(), ippSimpleServerTestCase::testSimpleServer3(), ippSimpleServerTestCase::testSimpleServer4(), ippSimpleServerTestCase::testSimpleServer5(), ippSimpleServerTestCase::testSimpleServerReceivingAbortE(), ippSimpleServerTestCase::testSimpleServerReceivingInvalidCommand(), and ippSimpleServerTestCase::testSimpleServerStartSessionEndSession().


Member Data Documentation

ippSocket ippEngine::_socket [protected]
 

Definition at line 42 of file ippEngine.h.

Referenced by ProbeConnection(), and ~ippEngine().


The documentation for this class was generated from the following files:
Generated on Wed Nov 8 00:20:50 2006 for IPPDME by  doxygen 1.4.1