fwenzel / ciaociao

A Bonjour/Zeroconf service discovery add-on for Firefox
https://addons.mozilla.org/addon/ciaociao/
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Windows support #10

Open fwenzel opened 8 years ago

fwenzel commented 8 years ago

No clue how do to that best yet. If we had a TCP socket in Firefox, I could do it all in JavaScript and be done. Alas, I am shelling out to external tools.

I don't think Windows ships with a Zeroconf client by default (?) so our options are limited.

It seems Apple made dns-sd for Windows so if I can hook into that that's an option but it would require the user to install the SDK I think.

dlech commented 7 years ago

Windows 10 has a built-in dns-sd.exe that is essentially the same as dnssd on macOS.

The path (in powershell parlance) is $env:SystemRoot/system32/dns-sd.exe. In other words, use the SystemRoot environment variable as the base of the path.

fwenzel commented 7 years ago

Oh yes! I like that. Thank you for this comment (and sorry I missed it so far). I do not have Windows 10 set up anywhere but I might be able to run a test VM to try this out?

dlech commented 7 years ago

I realized later that I have dns-sd.exe because I had Apple's Bonjour installed. It is not actually part of Windows.

Windows 10 does have built-in DNS-SD device discovery, but it requires using native APIs.

fwenzel commented 7 years ago

Oh thank you. That is unfortunate because I am not sure I'll be able to do that. Unless I'm able to make a tiny binary component, but I do not have a Windows 10 box for testing, nor the time to figure out how to make a windows app. Not sure how to make the minimal possible interface there.