0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
ResponseHandlerUDP Class Reference

This is the dispatch handler that gets installed as the default handler for UDP mode. More...

Inheritance diagram for ResponseHandlerUDP:
Inheritance graph
[legend]
Collaboration diagram for ResponseHandlerUDP:
Collaboration graph
[legend]

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< EventPtrm_queue
 
std::mutex m_mutex
 
std::condition_variable m_cond
 

Detailed Description

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.

Constructor & Destructor Documentation

ResponseHandlerUDP::ResponseHandlerUDP ( )
inline

Definition at line 210 of file sampleClient.cc.

Member Function Documentation

virtual bool ResponseHandlerUDP::get_response ( EventPtr event_ptr)
inlinevirtual

Implements ResponseHandler.

Definition at line 224 of file sampleClient.cc.

virtual void ResponseHandlerUDP::handle ( EventPtr event_ptr)
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.

Parameters
event_ptrsmart pointer to Event object

Implements ResponseHandler.

Definition at line 212 of file sampleClient.cc.


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