If the dealer needs to determine whether the router is available one option is to have it send a request and poll for a response. No response within a timeout means the router is down. Any disadvantages to this approach?
Thanks! Adam On Thu, May 2, 2013 at 9:36 AM, Pieter Hintjens <[email protected]> wrote: > You will need to send a message and wait for a reply. There's no other > way to do this. In any case since connections happen in the background > you would want some kind of event to arrive in your app telling you > the connection had succeeded, and the natural with 0MQ would be a > message. > > -Pieter > > On Thu, May 2, 2013 at 3:24 PM, Adam Covitch <[email protected]> > wrote: > > I have a simple test app where a dealer connects to a router. If the > router > > is not reachable, is there any way for the dealer to detect this? > > > > I know that I could use a hadnshaking or ping/pong approach, but I'm > looking > > for a cleaner solution, one that is build into ZeroMQ. > > > > Thanks! > > Adam > > > > _______________________________________________ > > zeromq-dev mailing list > > [email protected] > > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
