![]() |
Leosac
0.8.0
Open Source Access Control
|
Implements a message bus (running in its own thread) that use 2 sockets. More...
#include <MessageBus.hpp>
Public Member Functions | |
| MessageBus (zmqpp::context &ctx) | |
| ~MessageBus () | |
Private Member Functions | |
| bool | run (zmqpp::socket *pipe) |
| The method that will be run in the child thread. More... | |
| void | handle_pipe (zmqpp::socket *pipe) |
| void | handle_pull () |
Private Attributes | |
| zmqpp::actor * | actor_ |
| zmqpp::context & | ctx_ |
| zmqpp::socket * | pub_ |
| zmqpp::socket * | pull_ |
| bool | running_ |
Implements a message bus (running in its own thread) that use 2 sockets.
PULL socket to receive message from client (available at inproc://zmq-bus-pull) PUB socket to publish everything it received (available at inproc://zmq-bus-pub)
Definition at line 29 of file MessageBus.hpp.
| MessageBus::MessageBus | ( | zmqpp::context & | ctx | ) |
Definition at line 23 of file MessageBus.cpp.
| MessageBus::~MessageBus | ( | ) |
Definition at line 33 of file MessageBus.cpp.
|
private |
Definition at line 70 of file MessageBus.cpp.
|
private |
Definition at line 81 of file MessageBus.cpp.
|
private |
The method that will be run in the child thread.
Pipe is a PAIR socket back to ZmqBus object.
Definition at line 38 of file MessageBus.cpp.
|
private |
Definition at line 36 of file MessageBus.hpp.
|
private |
Definition at line 44 of file MessageBus.hpp.
|
private |
Definition at line 46 of file MessageBus.hpp.
|
private |
Definition at line 47 of file MessageBus.hpp.
|
private |
Definition at line 53 of file MessageBus.hpp.