NetService icon indicating copy to clipboard operation
NetService copied to clipboard

Bouke NetService on Windows

Open litewrap opened this issue 3 years ago • 1 comments

Hi, now we have Swift working on Windows. I am curious of any experiments for adding Bouke NetService to Windows. I see two possibilities:

1- Try with the legacy Apple Bonjour SDK for Windows. The SDK is old (2004) but provides the DLL and the dns_sd.h header. Do you think this Apple dns_sd.h for Windows can simply replace the one you are using for Linux ?

https://developer.apple.com/download/all/?q=Bonjour%20SDK%20for%20Windows

2- Since now Microsoft support Bonjour native on Windows 10/11 with there own Win32 DNS API, we can design a Swift layer over the Microsoft API (windns.h). Longer way but native Win32 support. Any advantages over Apple legacy dns_sd for Windows ? Is anybody have tried this way ?

https://docs.microsoft.com/en-us/windows/win32/api/_dns/

Thanks to Bouke for helping us having a Swift NetService solution for macOS and Linux. Looking forward for Windows support too.

litewrap avatar Aug 23 '22 12:08 litewrap

Windows support is an interesting idea. Option 2 looks like the most future forward approach. I would consider merging a well-written PR.

Bouke avatar Aug 25 '22 07:08 Bouke