zeroconf icon indicating copy to clipboard operation
zeroconf copied to clipboard

List all services

Open nalanj opened this issue 8 years ago • 3 comments

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?

nalanj avatar Apr 11 '17 18:04 nalanj

There's a example on how to browse for available services.

https://github.com/grandcat/zeroconf/tree/master/examples/resolv

AhmadMuzakkir avatar Apr 16 '17 05:04 AhmadMuzakkir

see my open PR #15, usually "_services._dns-sd._udp" is what you want.

project0 avatar Jul 18 '17 09:07 project0

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?

nkirsch avatar Jul 21 '17 16:07 nkirsch