zmqpp 4.1.2
C++ bindings for 0mq (libzmq)
|
Provide a steerable proxy that will bidirectionally forward traffic between socket A and B. More...
#include <proxy_steerable.hpp>
Public Member Functions | |
proxy_steerable (socket &sa, socket &sb, socket &control) | |
Construct a proxy that will forward traffic from A to B and from B to A and receive control messages in control More... | |
proxy_steerable (socket &sa, socket &sb, socket &control, socket &capture) | |
Construct a proxy that will forward traffic from A to B and from B to A and receive control messages in control as well as sending a copy of all messages to capture More... | |
Provide a steerable proxy that will bidirectionally forward traffic between socket A and B.
If capture socket is not null, the proxy shall send all messages, received on both frontend and backend, to the capture socket. The capture socket should be a ZMQ_PUB, ZMQ_DEALER, ZMQ_PUSH, or ZMQ_PAIR socket.
If the control socket is not NULL, the proxy supports control flow. If PAUSE is received on this socket, the proxy suspends its activities. If RESUME is received, it goes on. If TERMINATE is received, it terminates smoothly.
zmq_proxy_steerable()
. zmqpp::proxy_steerable::proxy_steerable | ( | zmqpp::socket & | sa, |
zmqpp::socket & | sb, | ||
zmqpp::socket & | control | ||
) |
Construct a proxy that will forward traffic from A to B and from B to A and receive control messages in control
zmqpp::proxy_steerable::proxy_steerable | ( | zmqpp::socket & | sa, |
zmqpp::socket & | sb, | ||
zmqpp::socket & | control, | ||
zmqpp::socket & | capture | ||
) |
Construct a proxy that will forward traffic from A to B and from B to A and receive control messages in control
as well as sending a copy of all messages to capture