待续。。。

Ping

 

 ResolverService

 

 

DiscoveryService

 

 

Connection

————————————————————————————————————————————————————————

https://www.java.net/node/667364

 

Using discovery for presence is not a good idea. I was told so also by a JXTA guru that shall remain unnamed ;-)
His recommendation to me which I plan to follow is to simply use a bidipipe connection. that is, keep a list of peers you want to keep track of, let them have a public bidipipe always available and simply connect and disconnect from that pipe at regular intervals. You do not need to implement more than that since a connection to the pipe confirm presence of that peer. No actual communication need to take place.
It may not be pretty but it will get the job done.
Hope it helps.

posted on 2012-03-02 11:34  网络大豆  阅读(198)  评论(0编辑  收藏  举报