[zeromq-dev] ROUTER-DEALER unbind and disconnect

Pieter Hintjens ph at imatix.com
Sat Sep 14 10:59:44 CEST 2013

Hi Teng,

When the dealer socket makes a new connection, it gets a new identity
in the router socket, so before you can send it a message it must
first send something to the router.

You cam override this by forcing an identity on the dealer socket
before the first connect. Then the router can talk back to it even if
the dealer socket switches to a new connection.


On Sat, Sep 14, 2013 at 9:14 AM, teng.jin <teng.jin at rongchengtech.com> wrote:
> Hi All,
> I'm using ROUTER-DEALER sockets, and they work well when I bind the router
> and connect the dealer to the same address first time. Then I use
> "zmq_unbind" to unbind the router from the original  address and then bind
> it to a new address, and did the same thing to the dealer socket. After
> this, this two sockets cannot comunicate with each other anymore. Is
> anything wrong here?
> Thanks!!
> ________________________________
> teng.jin
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list