[zeromq-dev] best way to stop a monitor socket

Claudio Bisegni Claudio.Bisegni at lnf.infn.it
Thu Mar 13 14:20:21 CET 2014

i have a problem stopping a zmq monitor socket. I have a class that wrap a zmq socket and his monitor socket(in his thread). When i dispose the class i first close the data socket and then the monitor socket. At this point i receive the error " Assertion failed: ok (mailbox.cpp:82)" error.

this i my code: http://pastebin.com/9GhY4qKW where ZMQDirectIOClient is the root class and ZMQDirectIOClientConnection is the class that wraps either the data socket and monitor socket.

I have two answer:
1: can be used only one monitor socket to listen for event on more data socket?
2: how i can showdown cleanly the monitor socket for every ZMQDirectIOClientConnection

thanks in advanced
Claudio Bisegni
Computing Services
LNF-INFN Via Enrico Fermi, 40 - 00044 Frascati Roma Italy

mail: Claudio.Bisegni at lnf.infn.it
www: http://www.lnf.infn.it/~bisegni 

More information about the zeromq-dev mailing list