keepsimple1 / mdns-sd

Rust library for mDNS based Service Discovery
Apache License 2.0
89 stars 38 forks source link

Updating service info when service is registered #161

Closed richardhozak closed 6 months ago

richardhozak commented 6 months ago

Hello, is there a way to update ServiceInfo of a registered service, for example hostname or some txt record that would get re-announces to listening clients without unregistering and registering the service again? Also how expensive is doing unregistration and registration again with changed info, is there a way to do this efficiently?

keepsimple1 commented 6 months ago

You should be able to re-announce by registering with the new info. No need to unregister first. Let me know if that helps. (I don't have time to test it myself at the moment. )

richardhozak commented 6 months ago

Thank you, it works perfectly.