Presence service

本文建议了一种使用BiDiPipe连接来确认对等方在线状态的方法,即维护一个想要跟踪的对等方列表,并定期与它们的公开BiDiPipe连接建立和断开连接,以确认这些对等方的存在,而无需实际通信。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值