[zeromq-dev] How to distinguish peers using socket_monitor

Milosz Malczak milosz.malczak at cern.ch
Mon Jun 3 11:41:13 CEST 2019


I am creating a distributed system with one server and many peers. For communication I am using ZeroMQ, REQ-REP pattern. In order to be able to detect that the connection was lost I am using socket_monitor. The problem is that, when I get the message about disconnection, I don't know how I can tell which peer was actually disconnected. The only information that allows to distinguish the connections is the file descriptor, which I receive from the socket_monitor, but I don't know which connection/peer it belongs to.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20190603/c75640a9/attachment.htm>


More information about the zeromq-dev mailing list