[zeromq-dev] ROUTER socket and zmq_socket_monitor

Joel Lauener Joel.Lauener at cern.ch
Mon Aug 5 12:02:08 CEST 2013


Hi,

Currently I'm trying to setup a monitor on a ROUTER socket to detect clients disconnections. This system is put in place in addition to an heartbeat mechanism in order to provide faster disconnection detection on the server side.

My problem now is that I effectively receive a ZMQ_EVENT_DISCONNECTED event from ZMQ, but the payload of this event only contains "fd" (file descriptor I guess?). In such case is there a way to find the identity of the peer (as set on the client side using the ZMQ_IDENTITY option)?

Joel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130805/25370071/attachment.htm>


More information about the zeromq-dev mailing list