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.
_______________________________________________ zeromq-dev mailing list [email protected] https://lists.zeromq.org/mailman/listinfo/zeromq-dev
