[avahi] avahi-publisher: How to update txt-record in a service

Florian Erfurth f.erfurth at reel-multimedia.com
Fri May 29 06:42:45 PDT 2009


Hi I want to write an small application which publish a service with the 
content (text-record). The publisher should change this text. How is 
this done?

Do I have to remove service and recreate it with new text (like the 
code-part below)? Or can I change text-record "on the fly"? I don't want 
to remove/recreate service. :/

 > /* Remove the old services */
 > if (group)
 >    avahi_entry_group_reset(group);
 >
 > /* And create them again with the new name */
 >    create_services(client);

cu Floh


More information about the avahi mailing list