[avahi] [SPAM] - Re: [SPAM] - Re: publish-update problem - Email foundin subject - Email found in subject
Neil.James at gdcanada.com
Mon Apr 21 13:33:08 PDT 2008
Thanks for the insight Lennart!
From: avahi-bounces at lists.freedesktop.org
[mailto:avahi-bounces at lists.freedesktop.org] On Behalf Of Lennart
Sent: Monday, April 21, 2008 2:15 PM
To: Avahi ML
Subject: [SPAM] - Re: [avahi] [SPAM] - Re: publish-update problem -
Email foundin subject - Email found in subject
On Mon, 21.04.08 12:46, James, Neil (Neil.James at gdcanada.com) wrote:
> It seems that I was trekking down the wrong path, so what is the right
> one? There are notes in defs.h about how to publish updates to the txt
> portion of service. So what is the recommended method of subscribbing
> to these updates? I thought browsing was the way to go, but if there
> is a better way can somebody describe it to me?
Browsing will only inform you about services that are available, are
coming or are going.
Resolving will inform you about all the meta data of a service, i.e.
everything that goes beyond a mere name: address, port, host, TXT data.
Usually resolving is a one-shot operation: if a user chose one of the
items from the service list you just resolve it and connect to it, and
the close the resolver again.
However in some situations (like yours apparently) it makes sense to get
notifications about meta data changes (i.e. addres, port, host, TXT data
changes). For these cases you can keep the resolver open. It will then
notify you each time the meta data changes (by raising another
AVAHI_RESOLVER_FOUND) or if this specific service goes away
(AVAHI_RESOLVER_FAILURE) or comes back (AVAHI_RESOLVER_FOUND).
Long story short: just keep your resolver open and what for more
AVAHI_RESOLVER_FOUND. That's it.
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net ICQ# 11060553
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
avahi mailing list
avahi at lists.freedesktop.org
The information contained in this e-mail message is PRIVATE. It may contain confidential information and may be legally privileged. It is intended for the exclusive use of the addressee(s). If you are not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of this communication is strictly prohibited. If the intended recipient(s) cannot be reached or if a transmission problem has occurred, please notify the sender immediately by return e-mail and destroy all copies of this message.
More information about the avahi