Are there any other Java libraries for bonjour/zeroconf apart from JMDNS?

前端 未结 9 1546
清酒与你
清酒与你 2020-11-27 13:39

Are there any other Java libraries for bonjour/zeroconf apart from JMDNS?

相关标签:
9条回答
  • 2020-11-27 13:44

    Try avahi4j (https://code.google.com/archive/p/avahi4j/). But the project is archived and there is no active development from 2009.

    0 讨论(0)
  • 2020-11-27 13:52

    I've been working on a simple, pure Java implementation of mDNS Service Discovery. At the moment only synchronous browsing is supported, but I plan to add an asynchronous listener in the next release. It's free software and available on GitHub at https://github.com/fflewddur/hola.

    The only requirements are Java 8 and having the slf4j-api available in your class path.

    0 讨论(0)
  • 2020-11-27 13:52

    I've found more easy to create my own implementation (after experience with WS-Discovery and Bonjour for cross-platform cases) https://github.com/4ntoine/ServiceDiscovery-java. It has both Java and iOS impl for both client and server side.

    0 讨论(0)
  • 2020-11-27 13:59

    I'm also curious to find the best cross-platform DNS-SD (Zeroconf, Bonjour, DNS self discovery) library exists out there.

    It does sound like Apple's DNS-SD dnssd.jar is the "official" Java library that requires native library support on Windows, Linux, etc, but works out of the box on Mac OSX.

    There are other pure Java DNS-SD implementations, but it's unclear if any of them offer a library that is as easy to use or fully tested as DNS-SD (some of the projects appear to be abandoned for 2 years).

    1. Official Apple DNS-SD mDNSResponder library
    2. mDNSResponder and jmDNS integration - There's been some work to create a library that provides a common DNS-SD interface to jmDNS and Apple's mDNSResponder implementation. Instructions to use the jmDNS wrapper.
    3. waiter - Described as a "modern DNS library and an effective DNS-SD (Service Discovery) library." It utilizes java NIO networking.
    4. jmDNS - JmDNS provides easy-to-use pure-Java mDNS implementation that runs on JDK 1.4 and higher
    5. JiveDNS - "JiveDNS is a fork of the defunct JmDNS library, used for multicast DNS service discovery and registration." (it itself has not seen an SVN update in over 2 years)
    0 讨论(0)
  • 2020-11-27 13:59

    Try at:

    DNS-SD

    -- The same Java DNS-SD APIs are also available in Bonjour for Windows, Bonjour for Linux, Solaris, *BSD, etc., enabling Java software to make use of Zeroconf's DNS Service Discovery across a wide range of platforms, not just on Mac OS X ......

    0 讨论(0)
  • 2020-11-27 14:05

    Waiter seems to be a pure Java library for DNS-SD. It's available here:

    http://code.google.com/p/waiter/

    0 讨论(0)
提交回复
热议问题