I’m, using NSNetService in macOS & iOS to advertise a network service that is written in a cross-platform way using C++. Using the new Network framework, advertising via NWListener.Service seems only possible if the network interface is also written using NWListener. How can I advertise my network service via Bonjour without using the now deprecated NSNetService?
Thanks for any advise.
[I have] a network service that is written in a cross-platform way using C++. … How can I advertise my network service via Bonjour without using the now deprecated
NSNetService
?
I’d use DNS-SD for this. If you need with that low-level API, check out the DNSSDObjects sample code.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"