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.

-Pieter

On Sat, Sep 14, 2013 at 9:14 AM, teng.jin <[email protected]> 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
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to