邻居发现?
您好,为了获取 IP 网络中宣布服务的周围节点的列表,我尝试使用 Apple 的 Bonjour。但是,我无法获得“简单”的教程来做到这一点。此外,我注意到大多数网站都关注动态IP地址分配、服务等。但我找不到任何有关检测网络中其他节点的信息。虽然看起来简单明了,但我不知道从哪里开始。注意:我需要使用 Java(osgi 包)。需要帮助请!! 谢谢
Hello, In order to get a list of the surrounding nodes announcing services in an IP network, I was trying to use Bonjour from Apple. However, I couldn't get an "easy" tutorial to do so. Moreover, I've noticed that most of the websites focus on the dynamic IP address allocation, services, etc. But I couldn't find any info about detecting the other nodes in the network. Although it looks easy and clear, I don't know from where to start. Note: I need to use Java (osgi bundles). Need Help please!!
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
澄清一下,您只能发现其他服务:
如果您需要通过 Java 执行服务发现,我建议使用JmDNS。
Just to clarify, you can only discover other services:
If you need to perform service discover through Java, I'd suggest using JmDNS.