Thanks a lot, this actually solved the problem.

On Tue, Feb 8, 2011 at 9:20 AM, Ian Barber <[email protected]> wrote:

>
>
> On Tue, Feb 8, 2011 at 7:41 AM, Gaspard Bucher <[email protected]> wrote:
>
>>
>> So this boils down to:
>>
>> 1. How am I supposed to change the connection of a REQ socket ?
>> 2. Is closing and creating a new socket the right way to handle this case
>> (it sure works) ?
>>
>
>
> Hi Gaspard,
>
> When you do the second connect(), you're not actually replacing the
> connection, but instead adding another one - ZMQ sockets can have many
> connections to many endpoints. I don't think there is a way to remove an
> existing connection, so the best idea would be to close and recreate the
> socket.
>
> Ian
>
> _______________________________________________
> 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