[zeromq-dev] Notification of peer disconnection for ZMQ_STREAM sockets.

André Caron andre.l.caron at gmail.com
Fri Jan 10 14:09:00 CET 2014


I've looked into this, but haven't tried it because
the ZMQ_EVENT_DISCONNECTED event doesn't provide file descriptor and (I
assume IP) address.  I have no idea how to map this back to the socket
identities...

Cheers,

André


On Fri, Jan 10, 2014 at 2:25 AM, Chris Laws <clawsicus at gmail.com> wrote:

> In CZMQ and PYZMQ you can use the socket event monitor interface to
> receive socket event notification of things such as connect, disconnect,
> accepted, etc.
>
> I use the zmonitor from CZMQ and zmq.utils.monitor.recv_monitor_message
> from pyzmq for receiving connection state information in applications where
> the connection state is important.
>
> Perhaps you could check if this would satisfy your needs.
>
> Regards,
> Chris
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140110/b3d7f183/attachment.htm>


More information about the zeromq-dev mailing list