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

ippClientServerSpy Class Reference

List of all members.

Public Types

enum  STATE { disconnected, trying_to_connect_to_remote_server, listening, connected }

Public Member Functions

 ippClientServerSpy ()
virtual ~ippClientServerSpy ()
bool Start (int listening_port, const char *server_ip, int server_port)
void HeartBeat ()
void Stop ()
virtual void SendCommandLine (const char *inputline, bool bwellFormed)
virtual void SendResponseLine (const char *inputline, bool bwellFormed)
virtual void OnStatusChanged (STATE)
ippLoggerGetLogger () const
void setLogger (ippLogger *logger)
STATE getStatus () const

Member Enumeration Documentation

enum ippClientServerSpy::STATE

Enumeration values:

Definition at line 85 of file ippClientServerSpy.h.

Constructor & Destructor Documentation

ippClientServerSpy::ippClientServerSpy  ) 

Definition at line 17 of file ippClientServerSpy.cpp.

References ippSpyServer::setParent(), and ippSpyClient::setParent().

ippClientServerSpy::~ippClientServerSpy  )  [virtual]

Definition at line 29 of file ippClientServerSpy.cpp.

References Stop().

Member Function Documentation

ippLogger * ippClientServerSpy::GetLogger  )  const

Definition at line 123 of file ippClientServerSpy.cpp.

ippClientServerSpy::STATE ippClientServerSpy::getStatus  )  const

Definition at line 99 of file ippClientServerSpy.cpp.

Referenced by Start().

void ippClientServerSpy::HeartBeat  ) 

Definition at line 57 of file ippClientServerSpy.cpp.

References connected, ippSpyServer::getStatus(), ippSpyClient::HeartBeat(), ippSpyServer::HeartBeat(), listening, OnStatusChanged(), and ippSpyServer::PowerOn().

Referenced by Start(), and Stop().

virtual void ippClientServerSpy::OnStatusChanged STATE   )  [virtual]

Definition at line 101 of file ippClientServerSpy.h.

Referenced by HeartBeat().

void ippClientServerSpy::SendCommandLine const char *  inputline,
bool  bwellFormed

Definition at line 102 of file ippClientServerSpy.cpp.

References ippSpyClient::SendCommand(), and ippLogger::WriteLineFormat().

Referenced by ippSpyServer::ProcessLine(), and ippSpyServer::ProcessMisformedLine().

void ippClientServerSpy::SendResponseLine const char *  inputline,
bool  bwellFormed

Definition at line 110 of file ippClientServerSpy.cpp.

References ippLogger::WriteLineFormat(), and ippSpyServer::WriteToSocket().

Referenced by ippSpyClient::ProcessLine(), and ippSpyClient::ProcessMisformedLine().

void ippClientServerSpy::setLogger ippLogger logger  ) 

Definition at line 118 of file ippClientServerSpy.cpp.

bool ippClientServerSpy::Start int  listening_port,
const char *  server_ip,
int  server_port

Definition at line 35 of file ippClientServerSpy.cpp.

References ippSpyClient::Connect(), disconnected, getStatus(), HeartBeat(), IPP_ASSERT, Stop(), and trying_to_connect_to_remote_server.

Referenced by ippClientServerSpyTestCase::testSpy(), and ippClientServerSpyTestCase::testSpy_with_uncompliant_client1().

void ippClientServerSpy::Stop  ) 

Definition at line 89 of file ippClientServerSpy.cpp.

References ippSpyClient::Disconnect(), disconnected, HeartBeat(), IPP_ASSERT, and ippSpyServer::PowerOff().

Referenced by Start(), and ~ippClientServerSpy().

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