Hi Attila, I use the zmq::monitor_t::monitor() call from the context of a secondary thread. In practice every time I want to monitor a socket (mostly for debugging) I create a new thread dedicated to its monitoring. This is an easy solution although probably is not the best one, specially if you need to monitor several sockets...
HTH, Francesco 2018-05-25 9:09 GMT+02:00 Attila Magyari <[email protected]>: > Hello, > > How do you use the cppzmq's zmq::monitor_t::monitor() call correctly? It > is an infinitely blocking method, and I don't know how to exit from it > gracefully. > > Is the use of socket monitoring discouraged? Are there better alternatives > to get connection status of the socket? > > Thank you! > > _______________________________________________ > 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
