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 <[email protected]>: > 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 > [email protected] > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > >
_______________________________________________ zeromq-dev mailing list [email protected] https://lists.zeromq.org/mailman/listinfo/zeromq-dev
