Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying TXT records created by Service class is not possible!? #3

Open
petersmar opened this issue Oct 10, 2016 · 0 comments
Open

Comments

@petersmar
Copy link

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.

@petersmar petersmar changed the title Modifying TXT recored created by Service class is not possible!? Modifying TXT records created by Service class is not possible!? Oct 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant