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

Improve dubious AvahiClient initialization #38

Closed windy1 closed 1 year ago

windy1 commented 1 year ago

This PR shifts around some of how the client, browser, and service components are initialized to follow the prescribed initialization flow. Previously, initialization was not following from the client initialization callback which was technically fine because initializing a client doesn't require calls to the poll, but this is more inline with how the initialization flow should follow and will allow for better flexibility going forward.