On 2011-12-03 12:06, Franz wrote: > Hello everyone, I have the following scenario: > -1 server, 2 or more clients > -the client #1 owns something that interests other client(s), be it a > file or a stream of data. > -the client #2 does not know the name nor the IP of the client #1, just > the one of the server. > -Both clients connect to the server, and the server just "makes them > able" to connect to each other. It might be something as easy as telling > them the IP of the other client, or anything else. The important catch > is that the file or stream should not go through the server, but > straight from #1 to #2 (for saving bandwidth), more or less the same way > it happens in P2P networks. > > Any idea about what can be done in ZeroMQ to achieve this? Hello,
The big question here seems to be: will your clients live on the same network, with no NAT and/or firewalls between them? If so, you can simply set a PUB socket on the client with the data and use the server for coordination; if you have to factor in NAT traversal, the only option left seems to be a per-client, per-connection REP/REQ pair. NAT traversal is limited to pretty much only simple TCP connections since it involves fooling various network appliances into thinking it's "their" side that initiated the connection. Jakub Witkowski. > _______________________________________________ > 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
