You can look at the CZMQ zproxy class to see one way to do this.

On Tue, Mar 11, 2014 at 9:35 PM, Cosmo Harrigan
<[email protected]> wrote:
> Hi,
>
> What is the best practice when you are creating a loop that functions like
> the zmq_proxy device, to bind a PULL socket that is fed by a backend
> ventilator with a frontend PUB socket, in order to properly handle a clean
> shutdown?
>
> Most of the examples on the zguide just show "while (1)" with a loop that
> never terminates. What's the suggested way of signaling to the loop which is
> running in its own thread that it is time to shut down?
>
> Thanks,
> Cosmo
>
>
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to