45 const uint8_t *ptr =
m_event->payload;
46 size_t remain =
m_event->payload_len;
50 params.
decode(&ptr, &remain);
55 cb.
error(e.
code(),
"Error handling READ message");
Request parameters for read requests.
uint32_t get_amount()
Gets amount of data to read.
Broker * m_broker
Pointer to file system broker object.
Logging routines and macros.
Compatibility Macros for C/C++.
Declarations for Read request handler.
Functions to serialize/deserialize primitives to/from a memory buffer.
virtual void decode(const uint8_t **bufp, size_t *remainp)
Reads serialized representation of object from a buffer.
Comm * m_comm
Pointer to comm layer.
Application handler for read function.
virtual int error(int error, const String &msg)
Sends a standard error response back to the client.
virtual void read(Response::Callback::Read *cb, uint32_t fd, uint32_t amount)=0
Read data from an open file.
This is a generic exception class for Hypertable.
int32_t get_fd()
Gets file descriptor.
EventPtr m_event
MESSAGE Event from which handler was initialized.
virtual void run()
Invokes the read function.
File system broker framework and client library.
Declarations for ResponseCallback.
Error codes, Exception handling, error logging.
int code() const
Returns the error code.
Declarations for Read request parameters.