This is the dispatch handler that gets installed as the default handler for UDP mode. More...
Public Member Functions | |
ResponseHandlerUDP () | |
virtual void | handle (EventPtr &event_ptr) |
Callback method. More... | |
virtual bool | get_response (EventPtr &event_ptr) |
Public Member Functions inherited from ResponseHandler | |
ResponseHandler () | |
virtual | ~ResponseHandler () |
Public Member Functions inherited from Hypertable::DispatchHandler | |
virtual | ~DispatchHandler () |
Destructor. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ResponseHandler | |
std::queue< EventPtr > | m_queue |
std::mutex | m_mutex |
std::condition_variable | m_cond |
This is the dispatch handler that gets installed as the default handler for UDP mode.
It queues up the responses which can be fetched by the application via a call to GetResponse()
Definition at line 206 of file sampleClient.cc.
|
inline |
Definition at line 210 of file sampleClient.cc.
|
inlinevirtual |
Implements ResponseHandler.
Definition at line 224 of file sampleClient.cc.
|
inlinevirtual |
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.
event_ptr | smart pointer to Event object |
Implements ResponseHandler.
Definition at line 212 of file sampleClient.cc.