@Lucretio following this conversation I decided to write a JUCE module wrapper for Bonjour. You can access it here if you’re interested https://github.com/Anthony-Nicholls/jucey_bonjour
WARNING: I’ve currently only tested this on macOS, for example on Windows it will need the bonjour SDK. I have added a list of work still be done here https://github.com/Anthony-Nicholls/jucey_bonjour/issues.
That being said you can register, discover (browse), and resolve services. Including adding and reading TXT Records which are referred to as properties of a service in the module.
The only example of usage at the moment is the unit tests, you can open up the tests/tests.jucer and point the juce_core module to a local copy of the JUCE repo if you want to build it. All the tests are in https://github.com/Anthony-Nicholls/jucey_bonjour/blob/master/jucey_bonjour/bonjour/jucey_BonjourServiceTests.cpp
If you decide to use it let me know how you get on with it.