Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

CTCLListener Class Reference

#include <CTCLListener.h>

List of all members.

Public Methods

 CTCLListener (int nPort, CTclAuthorizer *pAuth)
 Construct using port value.

virtual ~CTCLListener ()
 Destructor.


Protected Methods

virtual void OnConnection (CSocket *pPeer)
virtual bool Authenticate (CSocket *pPeer)

Private Methods

 CTCLListener (const CTCLListener &rhs)
 Copy constructor.

CTCLListener & operator= (const CTCLListener &rhs)
 Assignment.

int operator== (const CTCLListener &rhs) const
 Comparison for equality.

int operator!= (const CTCLListener &rhs) const

Private Attributes

CTclAuthorizerm_pAuthorizer


Detailed Description

Listens for connections for the TclServer component of the readout software. When connections are requested, creates and starts a new CTCLServer object that processes the tcl commands poked into it socket.

Definition at line 301 of file CTCLListener.h.


Constructor & Destructor Documentation

CTCLListener::CTCLListener int    nPort,
CTclAuthorizer   pAuth
 

Construct using port value.

Default constructor. This is called when declarations of the form e.g.:

  • CTCLListener object; are performed.

Definition at line 310 of file CTCLListener.cpp.

References CReadoutMain::getInstance(), CReadoutMain::getInterpreter(), CInterpreterShell::getInterpreterCore(), CInterpreterCore::getStartup(), and itoa().

virtual CTCLListener::~CTCLListener   [inline, virtual]
 

Destructor.

Definition at line 310 of file CTCLListener.h.

CTCLListener::CTCLListener const CTCLListener &    rhs [private]
 

Copy constructor.


Member Function Documentation

bool CTCLListener::Authenticate CSocket *    pPeer [protected, virtual]
 

Return True if the supplied socket is authorized to connect to this server.

Parameters:
CSocket  * pPeer

Definition at line 357 of file CTCLListener.cpp.

References CTclAuthorizer::Authenticate(), and m_pAuthorizer.

Referenced by OnConnection().

void CTCLListener::OnConnection CSocket *    pPeer [protected, virtual]
 

Processes connection requests:

  • Authenticate the connection to determine that it is acceptable.
  • If the connection authenticates, then create a CTCLServer to process it.
Parameters:
CSocket  * pPeer

Definition at line 338 of file CTCLListener.cpp.

References Authenticate().

int CTCLListener::operator!= const CTCLListener &    rhs const [private]
 

CTCLListener& CTCLListener::operator= const CTCLListener &    rhs [private]
 

Assignment.

int CTCLListener::operator== const CTCLListener &    rhs const [private]
 

Comparison for equality.


Member Data Documentation

CTclAuthorizer* CTCLListener::m_pAuthorizer [private]
 

Definition at line 304 of file CTCLListener.h.

Referenced by Authenticate().


The documentation for this class was generated from the following files:
Generated on Fri Nov 8 13:37:26 2002 for Event Readout system. by doxygen1.2.16