zmqpp 4.1.2
C++ bindings for 0mq (libzmq)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
zmqpp::proxy_steerable Class Reference

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
 
 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
 

Detailed Description

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.

Note
This is wrapper around zmq_proxy_steerable().

Constructor & Destructor Documentation

◆ proxy_steerable() [1/2]

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

◆ proxy_steerable() [2/2]

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


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