http://forums.java.net/jive/thread.jspa?messageID=226543
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.
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.
本文建议了一种使用BiDiPipe连接来确认对等方在线状态的方法,即维护一个想要跟踪的对等方列表,并定期与它们的公开BiDiPipe连接建立和断开连接,以确认这些对等方的存在,而无需实际通信。
2180

被折叠的 条评论
为什么被折叠?



