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 SEEK message");
Comm * m_comm
Pointer to comm layer.
virtual void run()
Invokes the seek function.
Logging routines and macros.
int32_t get_fd()
Gets file descriptor.
Compatibility Macros for C/C++.
uint64_t get_offset()
Gets file offset.
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.
This class is used to generate and deliver standard responses back to a client.
Declarations for Seek request handler.
virtual int error(int error, const String &msg)
Sends a standard error response back to the client.
This is a generic exception class for Hypertable.
EventPtr m_event
MESSAGE Event from which handler was initialized.
Request parameters for seek requests.
File system broker framework and client library.
Declarations for ResponseCallback.
virtual void seek(ResponseCallback *cb, uint32_t fd, uint64_t offset)=0
Seek open file.
Error codes, Exception handling, error logging.
Broker * m_broker
Pointer to file system broker object.
Declarations for Seek request parameters.
int code() const
Returns the error code.