Hi Lennart,<br><br>Thanks for your reply. It&#39;s very helpful.<br><br>I think our case belongs to the exceptions where the constant monitoring is neccessory. So we will need to keep AvahiServiceResolver around.<br><br>My further question is, when will the AvahiServiceResolver be free. Do I need to release the resolver somewhere in my application or&nbsp; avahi itself will manage those resolvers?
<br><br>Thanks,<br>Arhold<br><br><div class="gmail_quote">On Dec 18, 2007 2:28 AM, Lennart Poettering &lt;<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, 30.11.07 15:21, Arhold (<a href="mailto:arhold@gmail.com">arhold@gmail.com</a>) wrote:<br><br>Hi!<br><div class="Ih2E3d"><br>&gt; In this scenario - service unreachable and then recovered, which is the<br>&gt; right way to handle in browser side? Is it necessary to call
<br>&gt; avahi_service_resolver_free when AVAHI_RESOLVER_FAILURE? I try to remove<br>&gt; that code and when the netif was recovered, the browser will be able t o get<br>&gt; the service again.<br><br></div>If you keep the AvahiServiceResolver object around after having
<br>received the first AVAHI_RESOLVER_FOUND or AVAHI_RESOLVE_FAILURE<br>event, then you will be notified whenever the service<br>disappears/reappers/changes. It is perfectly valid to keep the<br>resolver around for applications which want to constantly monitor a
<br>service and its service data.<br><br>Please note however, that usually resolving a service is a &quot;one-shot&quot;<br>thing, i.e. it should only be issued when actually connecting to a<br>service, and not already when discovering it. There are only very few
<br>exceptions where the constant monitoring makes sense, one of them<br>being iChat&#39;s _presence._tcp.<br><br>I hope this answers your question. I didn&#39;t fully understood your<br>problem, so if this does not answer your question, feel free to ask
<br>again.<br><br>Lennart<br><font color="#888888"><br>--<br>Lennart Poettering &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Red Hat, Inc.<br>lennart [at] poettering [dot] net &nbsp; &nbsp; &nbsp; &nbsp; ICQ# 11060553<br><a href="http://0pointer.net/lennart/" target="_blank">
http://0pointer.net/lennart/</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GnuPG 0x1A015CC4<br>_______________________________________________<br>avahi mailing list<br><a href="mailto:avahi@lists.freedesktop.org">avahi@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/avahi" target="_blank">
http://lists.freedesktop.org/mailman/listinfo/avahi</a><br></font></blockquote></div><br>