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

View: New views
2 Messages — Rating Filter:   Alert me  

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

by Florian Erfurth-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
avahi mailing list
avahi@...
http://lists.freedesktop.org/mailman/listinfo/avahi

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

by Lennart Poettering-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 29.05.09 15:42, Florian Erfurth (f.erfurth@...) wrote:

> 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. :/

RTFM!

http://avahi.org/download/doxygen/main.html

See the last paragraph about "How to Register Services".

Lennart

--
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4
_______________________________________________
avahi mailing list
avahi@...
http://lists.freedesktop.org/mailman/listinfo/avahi