Description
When creating a new Service class the constructor will accept a properties parameter. The content is put into a TXT record associated to the SRV record.
But is there any way to modify this record after service is registered via Poco::DNSSD::DNSSDResponder::registerService? There is no Poco::DNSSD::RecordHandle returned that can be used to call Poco::DNSSD::DNSSDResponder::updateRecord.
I created a Service instance without passing properties parameters to the Ctor and added a Record afterwards via Poco::DNSSD::DNSSDResponder::addRecord. But the result is, that there is automatically created an empty TXT record when the service is registered. This Record is of type TXT and has a TXT length of zero.
Have a look at frame number 11. There you can see the two TXT records. On is the empty one that was created when the service was added.
TestDNSSD Wireshark.pcapng.txt The wireshark trace. Was not able to load a ZIP file. Remove the txt extension of pcapng file and hope it is not damaged.