53 if (event->header.command ==
57 if (event->payload_len >= 2) {
58 const uint8_t *ptr =
event->payload;
59 size_t remain =
event->payload_len;
63 m_app_queue->shutdown();
64 m_broker->shutdown(&cb);
67 quick_exit(EXIT_SUCCESS);
80 HT_DEBUGF(
"%s : Closing all open handles from %s", event->to_str().c_str(),
81 event->addr.format().c_str());
std::string String
A String is simply a typedef to std::string.
static bool unlink(const String &fname)
Unlinks (deletes) a file or directory.
String format(const char *fmt,...)
Returns a String using printf like format facilities Vanilla snprintf is about 1.5x faster than this...
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
void remove_all(struct sockaddr_in &addr)
static ApplicationHandler * create(Comm *comm, Broker *broker, EventPtr &event)
Constructs a handler class from a request event.
bool has(const String &name)
Check existence of a configuration value.
virtual void handle(EventPtr &event)
Handles incoming events from client connections.
File system utility functions.
const char * get_text(int error)
Returns a descriptive error message.
uint16_t decode_i16(const uint8_t **bufp, size_t *remainp)
Decode a 16-bit integer in little-endian order.
Compatibility Macros for C/C++.
Functions to serialize/deserialize primitives to/from a memory buffer.
Connection disconnected event.
Perform immediate shutdown.
This class is used to generate and deliver standard responses back to a client.
#define HT_DEBUGF(msg,...)
virtual int error(int error, const String &msg)
Sends a standard error response back to the client.
Request/response message event.
This is a generic exception class for Hypertable.
A String class based on std::string.
Declarations for ConnectionHandler.
Declarations for ApplicationQueue.
File system broker framework and client library.
String extensions and helpers: sets, maps, append operators etc.
Error codes, Exception handling, error logging.
Declarations for FsBroker request handler Factory.
int code() const
Returns the error code.