(somewhat) Abstract base class for response handlers; Defines the message queue and the mutex and condition variable to protect it.
More...
(somewhat) Abstract base class for response handlers; Defines the message queue and the mutex and condition variable to protect it.
Definition at line 95 of file sampleClient.cc.
virtual void ResponseHandler::handle |
( |
EventPtr & |
event_ptr | ) |
|
|
pure virtual |
Callback method.
When the Comm layer needs to deliver an event to the application, this method is called to do so. The set of event types include, CONNECTION_ESTABLISHED, DISCONNECT, MESSAGE, ERROR, and TIMER.
- Parameters
-
event_ptr | smart pointer to Event object |
Implements Hypertable::DispatchHandler.
Implemented in ResponseHandlerUDP, and ResponseHandlerTCP.