Hi,
I’m trying to use Bonjour to register a service and to pass some extra informations in the TXT record.
How to I set this TXT record ?
Is there specific formats or restrictions ?
Then, when the TXT record is set, how do I get it back using browse of lookup?
I tried by modifying the “Bonjour” example in MBS Network:
- specifying the TXT record in DNSServiceRegisterMBS.Register but the registration failed.
- registering the service with an empty TXT record then adding it using .AddRecord(r.kTypeTXT, “my text here”,0) or .UpdateRecord(“my text here”,0) this doesn’t fail but when resolving (ServiceResolve event of DNSServiceResolveMBS) the service TXT record is empty.
It’s probably not relevant but I’m testing on macOS Monterey, Xojo 2021r3.1, MBS plugins v231.
Thanks for any hints !
Regards,
Olivier