commore  1.0.6-SNAPSHOT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
commore::Listener Class Referenceabstract

#include <Listener.h>

+ Inheritance diagram for commore::Listener:

Classes

class  Callback
 

Public Member Functions

 Listener ()
 
virtual ~Listener ()
 
virtual bool start ()
 
virtual bool stop ()
 
virtual bool is_ok ()
 
virtual bool is_stopped ()
 
virtual void set_callback (Callback &callback)
 
virtual void reset_callback ()
 
virtual const AStringget_address () const =0
 
virtual void set_param (const Tuple &param)
 
virtual Tupleget_param (Tuple &param)
 
- Public Member Functions inherited from commore::RefObject
 RefObject ()
 
virtual ~RefObject ()
 
virtual void attach ()
 
virtual void release ()
 
virtual void nested_attach ()
 
virtual void nested_release ()
 
virtual void interface_release ()
 
virtual void Run ()
 
virtual CriticalSectionget_cs ()
 

Static Public Member Functions

static const ACharfactory_name ()
 
- Static Public Member Functions inherited from commore::RefObject
static AutoRefBase auto_create ()
 
static AutoRefBase auto_create (const AChar *s)
 
static AutoRefBase create ()
 
static AutoRefBase create (const AChar *s)
 
static AutoRefBase bind ()
 
static AutoRefBase bind (const AChar *s)
 
static const ACharfactory_name ()
 

Protected Attributes

Callbackcallback_
 

Constructor & Destructor Documentation

Listener::Listener ( )
Listener::~Listener ( )
virtual

Member Function Documentation

static const AChar* commore::Listener::factory_name ( )
inlinestatic
Returns
the listener factory name
virtual const AString& commore::Listener::get_address ( ) const
pure virtual
Returns
the encoded address of listener ! as it must appear in the sender spec address field.

Implemented in TCPIPListener, and SHMListener.

Tuple & Listener::get_param ( Tuple param)
virtual

Reimplemented in SHMListener, and TCPIPListener.

bool Listener::is_ok ( )
virtual

Check listener integrity Implementation return here possible invalid state

Returns
true if listener is ok

Reimplemented in SHMListener.

bool Listener::is_stopped ( )
virtual
Returns
true if listener is listening

Reimplemented in SHMListener.

void Listener::reset_callback ( )
virtual

Remove listener callback

Reimplemented in TCPIPListener.

void Listener::set_callback ( Callback callback)
virtual

Set the listener callbak

Reimplemented in TCPIPListener.

void Listener::set_param ( const Tuple param)
virtual

Param management

Reimplemented in SHMListener, and TCPIPListener.

bool Listener::start ( )
virtual

Start listen, notice that start is automaticaly called when object is created.

Returns
true if lstener is started

Reimplemented in TCPIPListener, and SHMListener.

bool Listener::stop ( )
virtual

Stop listen Finish current call, close connections, and does not accept new connection any more.

Returns
true if lstener is stopped

Reimplemented in TCPIPListener, and SHMListener.

Member Data Documentation

Callback* commore::Listener::callback_
protected

The documentation for this class was generated from the following files: