swift-dns-service-discovery icon indicating copy to clipboard operation
swift-dns-service-discovery copied to clipboard

Support Linux/Avahi properly

Open fwcd opened this issue 2 years ago • 2 comments

We should make sure that Linux supports actually works as intended with the Avahi stack, given that some additional workarounds might be needed:

  • https://stackoverflow.com/questions/7391079/avahi-dns-sd-compatibility-layer-fails-to-run-browse-callback
  • https://github.com/nallick/dns_sd/blob/9e9841c131cc1357fc63b69ff75d6d91e45b8429/Sources/dns_sd/DNSService.swift#L146-L170

fwcd avatar Aug 14 '23 02:08 fwcd

Hi, I'm looking for a Bonjour package to use on my Raspberry Pi. I was previously using NetService by Bouke but that seems to crash now and doesn't appear to be maintained any more.

Are you still working on Linux support in this package?

If you aren't, perhaps might you know why NetService is crashing? (Sorry, I'm not familiar with C) https://github.com/Bouke/NetService/issues/47

Thanks.

Diggory avatar Feb 10 '24 09:02 Diggory

Linux support somewhat depends on upstream (https://github.com/avahi/avahi/pull/18), so someone would have to put some work into polishing up/rebasing/adding tests to that PR before we could progress on #7.

fwcd avatar Feb 18 '24 22:02 fwcd