On Thu, 2017-11-09 at 19:08 +0000, Stephen Gray wrote: > 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.
You can listen for events, in particular a disconnect one will happen if a heartbeat fails. -- Kind regards, Luca Boccassi
signature.asc
Description: This is a digitally signed message part
_______________________________________________ zeromq-dev mailing list [email protected] https://lists.zeromq.org/mailman/listinfo/zeromq-dev
