zeroconf
zeroconf copied to clipboard
List all services
Was just taking a quick look, and I tried to write a quick sample to list all services on the network, but couldn't figure out how to do so. Any pointers of where I should read up or code I should check out to figure that out?
There's a example on how to browse for available services.
https://github.com/grandcat/zeroconf/tree/master/examples/resolv
see my open PR #15, usually "_services._dns-sd._udp" is what you want.
I applied the patch in PR #15 and it successfully gives me a full list of services on the local domain - which I presume I can iterate through to get all details - thanks, @Project0 ! That said, it seems useful to have a single function which would browse for all available service/hosts, akin to avahi-browse -a -r -v?