[zeromq-dev] How to quit from zmq_proxy gracefully
Pieter Hintjens
ph at imatix.com
Thu Oct 25 10:34:29 CEST 2012
On Wed, Oct 24, 2012 at 10:23 PM, Shun Zhang <aaashun at gmail.com> wrote:
> I want to use the new build-in function zmq_proxy, but the api reference
> page for zmq_proxy(3) has not been written.
Sorry, not published on-line yet, doing that now.
> Here is a nice implemtation using zmq_proxy. How to quit gracefully???
It exits when the context is terminated, or if the program is
interrupted. So you'd typically run the proxy in a child thread with
the same context, and if you wanted to exit cleanly, destroy the
context.
-Pieter
More information about the zeromq-dev
mailing list