[zeromq-dev] CZMQ/ZMQ Heartbeating demo.

Mykola Ostrovskyy spambox03 at mail.ru
Thu Nov 9 21:10:37 CET 2017


Stephen,

In the test code [1] they use socket monitors to detect disconnection
events. Not sure if that's the official way to deal with it, but at least a
way.

Yesterday was looking for some samples/tutorials myself. There isn't much
to mention. It's a pity that the guide does not cover this.


[1] https://github.com/zeromq/libzmq/blob/master/tests/test_heartbeats.cpp


Regards,
Mykola

2017-11-09 21:08 GMT+02:00 Stephen Gray <riskybizlive at live.com>:

> We have built-in heartbeating socket options from libzmq 4.2.0.
>
>
>
> http://czmq.zeromq.org/czmq4-0:zsock
>
>
>
> Does anyone know of a demo code which shows how to use them? Ideally using
> CZMQ.
>
>
>
> In particular; how does a program break out of a long-running send or
> receive loop when the heartbeat ttl has expired or there in no heartbeat
> response from a peer?
>
>
>
> Thanks.
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20171109/5956a8ec/attachment.htm>


More information about the zeromq-dev mailing list