windy1 / zeroconf-rs

zeroconf is a cross-platform library that wraps underlying ZeroConf/mDNS implementations such as Bonjour or Avahi, providing an easy and idiomatic way to both register and browse services.
MIT License
77 stars 25 forks source link

Question: how are name collisions handled? #20

Closed bmulder-innoseis closed 9 months ago

bmulder-innoseis commented 2 years ago

I want to be able to publish multiple instances of the same service running in the network on different hosts. In avahi, there is a specific way to handle collision errors, and a default way to change the name (calling avahi_alternative_service_name, works by appending "#1", "#2", etc.) How is this done in this library?

windy1 commented 2 years ago

This is not currently handled, please feel free to open a pull request with an integration of avahi_alternative_service_name and some Bonjour equivalent

windy1 commented 1 year ago

This has been a long time coming but I've started to implement this in #40

I'm having some trouble actually triggering a name collision in Avahi while testing. Is this something you had experience with? Thanks.

windy1 commented 9 months ago

Resolved in https://github.com/windy1/zeroconf-rs/pull/40