p2pjxta

How discover nearest's peers using JXTA?


I have a p2p network using JXTA protocol. Is it possible discover what peers are nearest a specific peer?

tks.


Solution

  • I am a new studier of the jxse2.6,for your problem, i think you should make a discover of the peer advertisement.TheDiscoveryService.getRemoteAdvertisements(null, peer, null, null, 0, new Edge_Maxime_The_Socializer()),and make a linster to show the peer information.