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
76 stars 24 forks source link

Properly implement TEventLoop::poll for AvahiEventLoop #18

Closed gh2o closed 1 year ago

gh2o commented 2 years ago

As of Avahi 0.7, the sleep_time arg passed to avahi_simple_poll_iterate() is utilized. Properly implementing this reduces CPU spent polling while improving responsiveness.

Great crate, by the way. Super easy to use.