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

ippSimpleServer Class Reference

Inheritance diagram for ippSimpleServer:

ippEngine ippObject List of all members.

Public Types

enum  STATE { uninitialized, listening, connected }

Public Member Functions

 ippSimpleServer (ippExecutor *_executor=0)
virtual ~ippSimpleServer ()
virtual void HeartBeat ()
virtual bool PowerOn (int portNumber=1294)
virtual bool PowerOff ()
virtual void OnClientConnected ()
virtual void OnClientDisconnected ()
STATE GetState () const
bool InSession () const
bool IsProcessingSlowCommand () const

Protected Member Functions

virtual void ExecuteCommand (ippCommandPtr aCommand)

Protected Attributes

ippCommandChecker_checker
ippExecutor_executor

Member Enumeration Documentation

enum ippSimpleServer::STATE
 

Enumeration values:
uninitialized 
listening 
connected 

Definition at line 31 of file ippSimpleServer.h.


Constructor & Destructor Documentation

ippSimpleServer::ippSimpleServer ippExecutor _executor = 0  ) 
 

Definition at line 30 of file ippSimpleServer.cpp.

References ippSocket::Initialize().

ippSimpleServer::~ippSimpleServer  )  [virtual]
 

Definition at line 42 of file ippSimpleServer.cpp.

References PowerOff().


Member Function Documentation

void ippSimpleServer::ExecuteCommand ippCommandPtr  aCommand  )  [protected, virtual]
 

Definition at line 392 of file ippSimpleServer.cpp.

References _checker, _executor, ippCommandChecker::checkCommand(), CHECKER_OK, ippExecutor::checkStatus(), ipp::ClearAllErrors, CommandTag, ippExecutor::executeCommand(), ippCommandCheckerBase::getCheckerErr(), ippCommandCheckerBase::getErrorMessageString(), ippCommandCheckerBase::getIppErr(), IllegalCommand, IPP_ASSERT, IPP_ASSERT_MSG, IPPSIZE, ProtocolError, ipp::StopAllDaemons, and UseClearAllErrorsToCont.

STATE ippSimpleServer::GetState  )  const
 

Definition at line 55 of file ippSimpleServer.h.

Referenced by ippSimpleServerTestCase::testSimpleServer1(), ippSimpleServerTestCase::testSimpleServerReceivingAbortE(), ippSimpleServerTestCase::testSimpleServerReceivingInvalidCommand(), ippClientServerSpyTestCase::testSpy(), and ippClientServerSpyTestCase::testSpy_with_uncompliant_client1().

void ippSimpleServer::HeartBeat  )  [virtual]
 

Implements ippEngine.

Definition at line 47 of file ippSimpleServer.cpp.

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

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

bool ippSimpleServer::InSession  )  const
 

Definition at line 67 of file ippSimpleServer.cpp.

Referenced by ippSimpleServerTestCase::testSimpleServerReceivingAbortE(), ippSimpleServerTestCase::testSimpleServerReceivingInvalidCommand(), ippSimpleServerTestCase::testSimpleServerStartSessionEndSession(), ippClientServerSpyTestCase::testSpy(), and ippClientServerSpyTestCase::testSpy_with_uncompliant_client1().

bool ippSimpleServer::IsProcessingSlowCommand  )  const
 

Definition at line 595 of file ippSimpleServer.cpp.

References _executor, and ippExecutor::readyToProcessSlowQueueCommand().

void ippSimpleServer::OnClientConnected  )  [virtual]
 

Definition at line 119 of file ippSimpleServer.cpp.

References _executor, ippServerQueues::ClearAllQueues(), IPP_ASSERT, and ippExecutor::resetExecutor().

void ippSimpleServer::OnClientDisconnected  )  [virtual]
 

Definition at line 130 of file ippSimpleServer.cpp.

References ippServerQueues::ClearAllQueues(), ippEngine::LogMessage(), and ipp::StopAllDaemons.

bool ippSimpleServer::PowerOff  )  [virtual]
 

Definition at line 88 of file ippSimpleServer.cpp.

References ippSocket::Close(), and uninitialized.

Referenced by ippSimpleServerTestCase::testSimpleServer1(), ippSimpleServerTestCase::testSimpleServer3(), and ~ippSimpleServer().

bool ippSimpleServer::PowerOn int  portNumber = 1294  )  [virtual]
 

Definition at line 72 of file ippSimpleServer.cpp.

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

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


Member Data Documentation

ippCommandChecker* ippSimpleServer::_checker [protected]
 

Definition at line 63 of file ippSimpleServer.h.

Referenced by ExecuteCommand().

ippExecutor* ippSimpleServer::_executor [protected]
 

Definition at line 64 of file ippSimpleServer.h.

Referenced by ExecuteCommand(), IsProcessingSlowCommand(), and OnClientConnected().


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