reactor_event_handler.h

00001 #ifndef _DHT_KADC_REACTOR_EVENT_HANDLER_H_
00002 #define _DHT_KADC_REACTOR_EVENT_HANDLER_H_
00003 
00004 #include <ace/Event_Handler.h>
00005 
00006 namespace dht {
00007 namespace kadc {
00008 
00009 // Forward declaration
00010 class client;
00011 
00012 class reactor_event_handler : public ACE_Event_Handler {
00013     class client *_owner;
00014     
00015 public:
00016     reactor_event_handler(class client *owner_client);
00017     virtual ~reactor_event_handler();
00018     
00019     void owner(class client *n);
00020     
00021     // Called when the client's message queue might have something in it.
00022     // Wakes up the reactor so that this class will be called again from
00023     // the reactor thread.
00024     void signal();
00025     
00026     virtual int handle_exception(ACE_HANDLE);
00027 };
00028 
00029 } // ns kadc
00030 } // ns dht
00031 
00032 #endif //_DHT_KADC_REACTOR_EVENT_HANDLER_H_

Generated on Thu Mar 1 16:18:47 2007 for libdht by  doxygen 1.5.1