On Thu, Jun 9, 2011 at 6:15 AM, Artur Brugeman <[email protected]> wrote:
> My pattern doen't match Freelance Pattern. Freelance is about servers, which > are stable (although there are several ones for redundancy) and clients. > My pattern is about equal unstable peers. If you are really interested in > what I'm trying to implement, here are two links... Actually Freelance connects a bunch of unstable workers with a bunch of unstable clients. So there are elements there you should be able to reuse, especially in the client side. Are you using a registration broker? That'd make life easier. In any case, using the same socket for bind/connect and trying to ensure only a single connection between peers depending on who gets there first seems fragile. I'd look at making each peer a 'client' and a 'server' consistently, with one outbound and one inbound socket. You can generate predictable identities using the endpoint as Freelance does. -Pieter _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
