获取 JXTA 对等组中的成员列表
我只是想知道是否有一种方法可以获取已加入 JXTA 中特定对等组的活跃或在线(成员)对等方的列表?提前致谢。
Im just wondering is there a way to get the list of active or online (members)peers who have joined to a particular peergroup in JXTA ?. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,不是真的。问题在于 P2P 网络中对等点的连接性和可达性是暂时的。你可能获得的任何信息都会随着时间的推移而迅速退化。
如果您想了解已连接的对等点,您可以让他们在连接和离开时发送“hello word”和“bye world”消息。但是,这并不能涵盖所有情况。有时,如果您在选定的延迟后没有收到对等方的答复,您必须假设它已离线。
No not really. The issue is that the connectivity and reachability of peers in a P2P networkis transient. Any information you might be able to get would quickly degrade in time.
If you want an idea of the connected peers, you could have them sent "hello word" and "bye world" messages when they connect and leave. However, this won't cover for all cases. Sometimes, if you don't get an answer from a peer after a chosen delay, you must assume it has gone offline.