commore  1.0.6-SNAPSHOT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TCPIPListenerBucket Class Reference
+ Inheritance diagram for TCPIPListenerBucket:

Public Member Functions

 TCPIPListenerBucket ()
 
 ~TCPIPListenerBucket ()
 
void start_thread ()
 
void stop_thread ()
 
void run ()
 
void add_socket (PSocket socket)
 
void remove_socket (PSocket socket)
 
void set (PPTCPIPListener manager)
 
PPTCPIPListener get_listener_manager ()
 
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 ()
 
- Public Member Functions inherited from commore::Thread
 Thread ()
 
virtual ~Thread ()
 
bool start ()
 
bool request_stop ()
 
bool stop ()
 
bool is_to_stop ()
 
bool is_stopped ()
 
bool is_running ()
 
bool wait (TimePeriod timeout)
 
bool trigger ()
 
virtual void run_item ()
 

Additional Inherited Members

- 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 ()
 

Constructor & Destructor Documentation

TCPIPListenerBucket::TCPIPListenerBucket ( )
TCPIPListenerBucket::~TCPIPListenerBucket ( )

Member Function Documentation

void TCPIPListenerBucket::add_socket ( PSocket  socket)
PPTCPIPListener TCPIPListenerBucket::get_listener_manager ( )
Tuple & TCPIPListenerBucket::get_param ( Tuple param)
void TCPIPListenerBucket::remove_socket ( PSocket  socket)
void TCPIPListenerBucket::run ( )
virtual

The main thread function. The method is call on start method by created system thread. The thread terminate when this method end. Must be implemented by derived class.

Remarks
The implementation must constantly check the stop flag to allow graceful stop.

Reimplemented from commore::Thread.

void TCPIPListenerBucket::set ( PPTCPIPListener  manager)
void TCPIPListenerBucket::start_thread ( )
void TCPIPListenerBucket::stop_thread ( )

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