Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zmq4: provide zmq4.Proxy #65

Closed
sbinet opened this issue Jan 21, 2020 · 0 comments · Fixed by #69
Closed

zmq4: provide zmq4.Proxy #65

sbinet opened this issue Jan 21, 2020 · 0 comments · Fixed by #69

Comments

@sbinet
Copy link
Contributor

sbinet commented Jan 21, 2020

we should have a way to expose something akin to zmq_proxy:

int zmq_proxy (const void *frontend, const void *backend, const void *capture);

The zmq_proxy() function starts the built-in ØMQ proxy in the current application thread.

The proxy connects a frontend socket to a backend socket. Conceptually, data flows from
frontend to backend. Depending on the socket types, replies may flow in the opposite
direction.
The direction is conceptual only; the proxy is fully symmetric and there is no technical
difference between frontend and backend.

Before calling zmq_proxy() you must set any socket options, and connect or bind both
frontend and backend sockets. The two conventional proxy models are:

zmq_proxy() runs in the current thread and returns only if/when the current context is
closed.

If the 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.
sbinet added a commit to sbinet-alice/zmq4 that referenced this issue Jan 21, 2020
sbinet added a commit to sbinet-alice/zmq4 that referenced this issue Jan 21, 2020
sbinet added a commit to sbinet-alice/zmq4 that referenced this issue Jan 21, 2020
sbinet added a commit to sbinet-alice/zmq4 that referenced this issue Jan 21, 2020
sbinet added a commit to sbinet-alice/zmq4 that referenced this issue Jan 21, 2020
sbinet added a commit to sbinet-alice/zmq4 that referenced this issue Jan 21, 2020
sbinet added a commit to sbinet-alice/zmq4 that referenced this issue Jan 21, 2020
sbinet added a commit to sbinet-alice/zmq4 that referenced this issue Jan 21, 2020
sbinet added a commit to sbinet-alice/zmq4 that referenced this issue Jan 22, 2020
sbinet added a commit to sbinet-alice/zmq4 that referenced this issue Jan 22, 2020
sbinet added a commit to sbinet-alice/zmq4 that referenced this issue Jan 22, 2020
sbinet added a commit to sbinet-alice/zmq4 that referenced this issue Jan 22, 2020
sbinet added a commit to sbinet-alice/zmq4 that referenced this issue Jan 22, 2020
sbinet added a commit to sbinet-alice/zmq4 that referenced this issue Jan 22, 2020
sbinet added a commit to sbinet-alice/zmq4 that referenced this issue Jan 22, 2020
@sbinet sbinet closed this as completed in bc94dbd Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant