12 #if (ZMQ_VERSION_MAJOR > 3)
27 template<
typename RequestHandler>
51 request.
reply(
"500",
"Internal error");
64 constexpr
static const char *
const zap_endpoint_ =
"inproc://zeromq.zap.01";
actor_t actor_
Definition: zap_handler.hpp:63
A class for working with ZAP requests and replies.
Definition: zap_request.hpp:33
A base ZAP handler object.
Definition: zap_handler.hpp:28
C++ wrapper around zmq.
Definition: actor.cpp:29
zap_handler(RequestHandler &handler)
Definition: zap_handler.hpp:33
The socket class represents the zmq sockets.
Definition: socket.hpp:75
const std::string & get_version() const
Get Version.
Definition: zap_request.hpp:49
void reply(const std::string &status_code, const std::string &status_text, const std::string &user_id)
Send a ZAP reply to the handler socket.
Definition: zap_request.cpp:72
static constexpr const char *const zap_endpoint_
Definition: zap_handler.hpp:64
bool run_zap_handler(zmqpp::socket *pipe)
Definition: zap_handler.hpp:42
RequestHandler & handler_
Definition: zap_handler.hpp:62
a zmq message with optional multipart support
Definition: message.hpp:43