[zeromq-dev] ZMQ PUB-SUB problem

Steven McCoy steven.mccoy at miru.hk
Thu Jun 27 20:59:30 CEST 2013


On 27 June 2013 02:19, Amar Pol <amarpol1305 at gmail.com> wrote:

> Now if some how *IP address of subscriber(biometric device in our case)
> changes , communication breaks*.
>
>
Ideally when the IP address changes the socket disconnects and 0mq's
reconnection mechanism kicks in and recovers.  However this can be highly
dependent upon the DHCP mechanism whether the interface is re-plumbed or
not.

The typical solution for sockets on say Linux is to subscribe to a NETLINK
socket receive interface change notifications and then tear down the socket
and reconnect.

An actual trace of what is happening in libzmq after the address has
changed would be useful.  Does the OS think the socket is still open?

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130627/cd9d6b50/attachment.htm>


More information about the zeromq-dev mailing list