Hello, I have a small variation on a problem that I've seen talked about
before, (and I have brought up before) but I've never found a good solution;

Let's imagine I'm programming something akin to the Bittorrent network; I
have trackers and peers, and the ip/port addresses of which I do not
initially know, but I can contact the tracker to find out.  I want to have
a single ROUTER socket to communicate with all peers, but in order to do
that I need some way of knowing the "identity" of the peer I'm talking to.
 I can get the identity of a peer when they send a message to me, but
neither peer can send the first message (even though they can connect to
eachother) because they only know the ip address, not the identity of
eachother, and the router doesn't route without the routing code.

Short of every peer transmitting it's ip address *and* identity to the
tracker, is there a better way to get two ROUTER connections talking to
eachother?

Thanks!
-E
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to