用于 Java 的 UPnP 库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3229665/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 17:35:51  来源:igfitidea点击:

UPnP library for Java

javaupnpservice-discovery

提问by Roland Tepp

Is there a library for implementing service discovery and publishing via UPnP?

是否有用于通过 UPnP 实现服务发现和发布的库?

(I am trying to find some alternatives to JmDNS that while protocol-wise worked fine for our purposes, was highly unstable as a library, having an unacceptably bad tendency for deadlocking itself.)

(我试图找到一些 JmDNS 的替代方案,虽然协议方面对我们的目的来说工作得很好,但作为一个库非常不稳定,有一种令人无法接受的死锁倾向。)

采纳答案by Roland Tepp

http://4thline.org/projects/cling/

http://4thline.org/projects/cling/

Open Source DLNA/UPnP stack, libraries, and tools for Java and Android developers

面向 Java 和 Android 开发人员的开源 DLNA/UPnP 堆栈、库和工具

回答by simonc

You could also try ohNetwhich includes Java bindings and control point / device stacks under a BSD license.

您还可以尝试使用ohNet,其中包含 BSD 许可下的 Java 绑定和控制点/设备堆栈。

(Disclaimer: I have contributed to this project)

(免责声明:我为这个项目做出了贡献)