zmqpp  4.1.2
C++ bindings for 0mq (libzmq)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
zmqpp::zap_handler< RequestHandler > Class Template Reference

A base ZAP handler object. More...

#include <zap_handler.hpp>

Public Member Functions

 zap_handler (RequestHandler &handler)
 

Private Member Functions

bool run_zap_handler (zmqpp::socket *pipe)
 

Private Attributes

RequestHandler & handler_
 
actor_t actor_
 

Static Private Attributes

static constexpr const char *const zap_endpoint_ = "inproc://zeromq.zap.01"
 

Detailed Description

template<typename RequestHandler>
class zmqpp::zap_handler< RequestHandler >

A base ZAP handler object.

The handler use an actor that will run in its own thread, processing requests.

It doesn't process request itself. It uses a template class to delegate the handling call. The templated class shall be a functor.

Note
The functor will be invoked in the ZAP thread.

Constructor & Destructor Documentation

template<typename RequestHandler >
zmqpp::zap_handler< RequestHandler >::zap_handler ( RequestHandler &  handler)
inline

Member Function Documentation

template<typename RequestHandler >
bool zmqpp::zap_handler< RequestHandler >::run_zap_handler ( zmqpp::socket pipe)
inlineprivate

Member Data Documentation

template<typename RequestHandler >
actor_t zmqpp::zap_handler< RequestHandler >::actor_
private
template<typename RequestHandler >
RequestHandler& zmqpp::zap_handler< RequestHandler >::handler_
private
template<typename RequestHandler >
constexpr const char* const zmqpp::zap_handler< RequestHandler >::zap_endpoint_ = "inproc://zeromq.zap.01"
staticprivate

The documentation for this class was generated from the following file: