celix icon indicating copy to clipboard operation
celix copied to clipboard

Discovery Zeroconf Portability

Open PengZheng opened this issue 1 year ago • 0 comments

Intro

Currently, discovery_zeroconf only builds with Conan on Linux. Initially, it is targeted at Embedded Linux, and thus depends on the most lightweight feature-complete implementation of dns-sd, a.k.a mDNSResponder. Unfortunately, most (if not all) Linux distributions provide the same functionality with avahi rather than mDNSResponder and mDNSResponder does not build on macOS.

Linux

Note that avahi provides the original Bonjour API as avahi-compat-libdns_sd, it should be possible to make discovery_zeroconf work with avahi. Though for tests to work, it may require additional efforts, see #618.

macOS

Note that dns-sd has first class citizen support on macOS: check this for the official documentation of the C API. Though without a mac at hand, I'm fairly optimistic that discovery_zeroconf could be made to work on macOS.

PengZheng avatar Jan 08 '24 09:01 PengZheng