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

ippSpyServer Class Reference

Inheritance diagram for ippSpyServer:

ippEngine ippObject List of all members.

Public Types

enum  STATE { uninitialized, listening, connected }

Public Member Functions

 ippSpyServer ()
virtual ~ippSpyServer ()
bool PowerOn (int portNumber)
bool PowerOff ()
virtual void HeartBeat ()
void WriteToSocket (const char *line)
void setParent (ippClientServerSpy *)
STATE getStatus () const

Protected Member Functions

virtual void ProcessLine (const char *inputline)
virtual void ProcessMisformedLine (const char *inputline)
void PerformListening ()
void OnClientConnected ()
void OnClientDisconnected ()
virtual void OnConnectionLost ()

Member Enumeration Documentation

enum ippSpyServer::STATE
 

Enumeration values:
uninitialized 
listening 
connected 

Definition at line 13 of file ippClientServerSpy.h.


Constructor & Destructor Documentation

ippSpyServer::ippSpyServer  ) 
 

Definition at line 9 of file ippSpyServer.cpp.

ippSpyServer::~ippSpyServer  )  [virtual]
 

Definition at line 16 of file ippSpyServer.cpp.


Member Function Documentation

STATE ippSpyServer::getStatus  )  const
 

Definition at line 27 of file ippClientServerSpy.h.

Referenced by ippClientServerSpy::HeartBeat().

void ippSpyServer::HeartBeat  )  [virtual]
 

Implements ippEngine.

Definition at line 27 of file ippSpyServer.cpp.

References connected, ippSleep(), listening, PerformListening(), ippEngine::PerformRead(), ippEngine::ProbeConnection(), and uninitialized.

Referenced by ippClientServerSpy::HeartBeat().

void ippSpyServer::OnClientConnected  )  [protected]
 

Definition at line 70 of file ippSpyServer.cpp.

References ippEngine::LogMessage().

Referenced by PerformListening().

void ippSpyServer::OnClientDisconnected  )  [protected]
 

Definition at line 75 of file ippSpyServer.cpp.

References ippEngine::LogMessage().

Referenced by OnConnectionLost().

void ippSpyServer::OnConnectionLost  )  [protected, virtual]
 

Reimplemented from ippEngine.

Definition at line 128 of file ippSpyServer.cpp.

References ippSocket::Listen(), listening, OnClientDisconnected(), ippEngine::OnConnectionLost(), and uninitialized.

Referenced by WriteToSocket().

void ippSpyServer::PerformListening  )  [protected]
 

Definition at line 44 of file ippSpyServer.cpp.

References ippSocket::Accept(), ippSocket::Close(), connected, IPP_ASSERT, ippSocket::IsValid(), listening, OnClientConnected(), and uninitialized.

Referenced by HeartBeat().

bool ippSpyServer::PowerOff  ) 
 

Definition at line 80 of file ippSpyServer.cpp.

References ippSocket::Close(), and uninitialized.

Referenced by ippClientServerSpy::Stop().

bool ippSpyServer::PowerOn int  portNumber  ) 
 

Definition at line 88 of file ippSpyServer.cpp.

References ippSocket::Listen(), listening, and uninitialized.

Referenced by ippClientServerSpy::HeartBeat().

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

Implements ippEngine.

Definition at line 104 of file ippSpyServer.cpp.

References ippCommandParser::parseCommand(), ippClientServerSpy::SendCommandLine(), and ippCommandParser::setInput().

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

Implements ippEngine.

Definition at line 115 of file ippSpyServer.cpp.

References ippClientServerSpy::SendCommandLine().

void ippSpyServer::setParent ippClientServerSpy  ) 
 

Definition at line 21 of file ippSpyServer.cpp.

Referenced by ippClientServerSpy::ippClientServerSpy().

void ippSpyServer::WriteToSocket const char *  line  ) 
 

Definition at line 120 of file ippSpyServer.cpp.

References OnConnectionLost(), and ippSocket::Write().

Referenced by ippClientServerSpy::SendResponseLine().


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