0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
Hypertable::FsBroker::Lib::Response::Callback::Read Class Reference

Application handler for read function. More...

#include <Read.h>

Inheritance diagram for Hypertable::FsBroker::Lib::Response::Callback::Read:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::FsBroker::Lib::Response::Callback::Read:
Collaboration graph
[legend]

Public Member Functions

 Read (Comm *comm, EventPtr &event)
 Constructor. More...
 
int response (uint64_t offset, StaticBuffer &buffer)
 Sends response parameters back to client. More...
 
- Public Member Functions inherited from Hypertable::ResponseCallback
 ResponseCallback (Comm *comm, EventPtr &event)
 Constructor. More...
 
 ResponseCallback ()
 Default constructor. More...
 
virtual ~ResponseCallback ()
 Destructor. More...
 
virtual int error (int error, const String &msg)
 Sends a standard error response back to the client. More...
 
virtual int response_ok ()
 Sends a a simple success response back to the client which is just the 4-byte error code Error::OK. More...
 
void get_address (struct sockaddr_in &addr)
 Gets the remote address of the requesting client. More...
 
const InetAddr get_address () const
 Gets the remote address of the requesting client. More...
 
EventPtrevent ()
 Get smart pointer to event object that triggered the request. More...
 

Additional Inherited Members

- Protected Attributes inherited from Hypertable::ResponseCallback
Commm_comm
 Comm pointer. More...
 
EventPtr m_event
 Smart pointer to event object. More...
 

Detailed Description

Application handler for read function.

Definition at line 47 of file Read.h.

Constructor & Destructor Documentation

Hypertable::FsBroker::Lib::Response::Callback::Read::Read ( Comm comm,
EventPtr event 
)
inline

Constructor.

Initializes parent class with comm and event.

Parameters
commPointer to comm layer
eventComm layer event that instigated the request

Definition at line 55 of file Read.h.

Member Function Documentation

int Callback::Read::response ( uint64_t  offset,
StaticBuffer buffer 
)

Sends response parameters back to client.

Parameters
offsetOffset at which data was read
bufferBuffer containing data that was read
Returns
Error code returned by Comm::send_result

Definition at line 40 of file Read.cc.


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