Fro finding peers, at the first time when a peer joins the network, it
relies on communication layer to discover some random peers. (A
service provided by JXTA) Afterward, a peer will discover more peers
from queries it receives or from responses to it queries.
For selecting peers, a peer creates a profile for each known peers.
It will use these profiles to select the most suitable peers to
forward each query. The profiles are updated by what we can learn
from responses from peers. We currently assume that the response from
a peer reflects its interest therefore a profile updated by
information from the peer's response should reflect the interest.
The detail of how we currently implement the concept is quite long.
Please let me know if you want to learn more.
Ruj A.
6S Developer