zmqpp 4.1.2
C++ bindings for 0mq (libzmq)
Loading...
Searching...
No Matches
zmqpp::proxy Class Reference

Provide a simple, non-steerable proxy that will bidirectionally forward traffic between socket A and B. More...

#include <proxy.hpp>

Public Member Functions

 proxy (socket &sa, socket &sb)
 Construct a proxy that will forward traffic from A to B and from B to A.
 
 proxy (socket &sa, socket &sb, socket &capture)
 Construct a proxy that will forward traffic from A to B and from B to A as-well as sending a copy of all message to capture
 

Detailed Description

Provide a simple, non-steerable proxy that will bidirectionally forward traffic between socket A and B.

If a capture socket is specified, 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.

Note
This is wrapper around zmq_proxy().

Constructor & Destructor Documentation

◆ proxy() [1/2]

zmqpp::proxy::proxy ( socket & sa,
socket & sb )

Construct a proxy that will forward traffic from A to B and from B to A.

◆ proxy() [2/2]

zmqpp::proxy::proxy ( zmqpp::socket & sa,
zmqpp::socket & sb,
zmqpp::socket & capture )

Construct a proxy that will forward traffic from A to B and from B to A as-well as sending a copy of all message to capture


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