zp-huang / peerdroid

Automatically exported from code.google.com/p/peerdroid
0 stars 0 forks source link

PeerDroid cannot connect with RDV JXSE2.6 #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
manager = new NetworkManager(NetworkManager.EDGE, "Test", cachefile.toURI());

configurator = manager.getConfigurator();

configurator.setPeerID(IDFactory.newPeerID(PeerGroupID.defaultNetPeerGroupID));

URI relaySeedingURI = URI.create("http://" + 
ServerConnection.ServerRelayHostname + ":" + 
ServerConnection.ServerPortConnect);
URI rendezvousSeedingURI = URI.create("tcp://" + 
ServerConnection.ServerHostname + ":4000");

configurator.setUseMulticast(false);

configurator.addSeedRendezvous(rendezvousSeedingURI);
configurator.addSeedRendezvous(relaySeedingURI);

configurator.setUseOnlyRendezvousSeeds(true);

manager.startNetwork();

manager.waitForRendezvousConnection(0); //nothing happens

The same code works for JXSE 2.6.

What is the expected output? What do you see instead?
I'd like to see the rendezvous connection working ;)

What version of the product are you using? On what operating system?
My RDV-Server is JXSE 2.6.
Peerdroid is included via peerdroid-1.1.jar; peerdroid-1.0.jar is also in the 
lib directory, but is not referenced by the project, because otherwise there 
are build errors.

Thank you very much

Original issue reported on code.google.com by SWAT.New...@googlemail.com on 19 Dec 2011 at 9:21

GoogleCodeExporter commented 8 years ago
I am running it on an Android 2.1 Emulator. Accessing the JXTA service via http 
(the web browser in Android) works. Therefore it's not the internet connection.

Original comment by SWAT.New...@googlemail.com on 19 Dec 2011 at 9:26

GoogleCodeExporter commented 8 years ago
I also tried JXTA 2.5 on the server side. It has the same problem.

Original comment by SWAT.New...@googlemail.com on 23 Dec 2011 at 9:10

GoogleCodeExporter commented 8 years ago
netPeerGroup.getRendezVousService().connectToRendezVous(new 
EndpointAddress(rendezvousSeedingURI));

seems to help :)

Original comment by SWAT.New...@googlemail.com on 27 Dec 2011 at 8:37