[zeromq-dev] detecting disconnections

Yi Ding yi.s.ding at gmail.com
Mon Jan 9 21:10:27 CET 2012


On Mon, Jan 9, 2012 at 8:30 AM, Chuck Remes <cremes.devlist at mac.com> wrote:
> On Jan 9, 2012, at 7:19 AM, Yi Ding wrote:
>
>> Would it be difficult to implement in the ZeroMQ framework?  I'm
>> willing to give it a shot if it doesn't clash with the fundamental
>> design.  This is pretty useful, especially in the finance industry,
>> where "cancel on disconnect" has become a necessity.
>
> You may want to collaborate on the design of such a thing with Martin Sustrik. Up until recently there was a repository filled with experimental code. One such experiment was a "super" ROUTER socket that included event notifications for things like connect/disconnect. I don't know how far Martin got with fleshing out that code, so it may have been more in the design phase than the implementation phase.
>
> cr

Yes, absolutely.  It'll be interesting to see what Martin's done with
the super ROUTER.  Right now, I'm using ZMQ through epoll with the
ZMQ_FD, (need to multiplex it with a bunch of pipes) so I'm looking
for something that's compatible with that.  Probably the easiest way
from that perspective would be to add it to the ZMQ_EVENTS option,
although other mechanisms should work as well.



More information about the zeromq-dev mailing list