45 const uint8_t *ptr =
m_event->payload;
46 size_t remain =
m_event->payload_len;
50 params.
decode(&ptr, &remain);
56 cb.
error(e.
code(),
"Error handling OPEN message");
virtual void open(Response::Callback::Open *cb, const char *fname, uint32_t flags, uint32_t bufsz)=0
Open a file and pass the fd to the callback on success.
Comm * m_comm
Pointer to comm layer.
Request parameters for open requests.
Broker * m_broker
Pointer to file system broker object.
Logging routines and macros.
Compatibility Macros for C/C++.
int32_t get_buffer_size()
Gets buffer size.
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.
Declarations for Open request handler.
Application handler for open function.
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.
File system broker framework and client library.
Declarations for ResponseCallback.
uint32_t get_flags()
Gets open flags.
Error codes, Exception handling, error logging.
Declarations for Open request parameters.
virtual void run()
Invokes the open function.
int code() const
Returns the error code.
const char * get_fname()
Gets file name.