39 size_t decode_remain = m_event->payload_len - 8;
40 const uint8_t *decode_ptr = m_event->payload + 8;
43 const char *name =
decode_vstr(&decode_ptr, &decode_remain);
44 m_master->initialize_session(m_session_id, name);
49 cb.
error(e.
code(),
"Error handling Hyperspace handshake");
char * decode_vstr(const uint8_t **bufp, size_t *remainp)
Decode a vstr (vint64, data, null).
virtual int response_ok()
Sends a a simple success response back to the client which is just the 4-byte error code Error::OK...
Declarations for Protocol.
virtual void run()
Carries out the request.
Logging routines and macros.
Compatibility Macros for C/C++.
Functions to serialize/deserialize primitives to/from a memory buffer.
This class is used to generate and deliver standard responses back to a client.
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.
Declarations for ResponseCallback.
Error codes, Exception handling, error logging.
int code() const
Returns the error code.