Hi Nathan,<div><br></div><div>Even im looking out for a potential possibility to know if any device publishing the service has been removed from LAN and all rest of devices get a REMOVE notification so that respective devices can update their cache. If any new device comes up, we get BROWSER_NEW event in browser_callback but there isnt any event for REMOVE. Could you please just share your idea how could we achieve this?</div>
<div><br></div><div>Regards,</div><div>Rajesh.<br><br><div class="gmail_quote">On Wed, Apr 13, 2011 at 11:09 AM, Nathanael D. Noblet <span dir="ltr">&lt;<a href="mailto:nathanael@gnat.ca">nathanael@gnat.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 04/11/2011 09:13 AM, Nathanael D. Noblet wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
So using the examples from the source in avahi I&#39;ve been able to get my<br>
one app to see when a new service comes online that I&#39;m interested in.<br>
However I&#39;m confused about the other use-case, mainly when a client goes<br>
offline. It doesn&#39;t provide enough information to know which host<br>
disappeared...<br>
<br>
 From the example browse_callback you get the event (failure, new,<br>
remove etc) in the case of new you resolve it to a host. Is there any<br>
way in the REMOVE case to determine the source (IP, hostname or any<br>
other identifying). The reason being is that my app is an<br>
&#39;administration&#39; app, so has a list of configured hosts, and avahi is<br>
used to know when they are accessible. So when a host starts the service<br>
I can see it and in my host list I mark it as &#39;online&#39; but when I cancel<br>
the service, I can&#39;t see a way to mark that host as offline.<br>
</blockquote>
<br></div>
So I poked around avahi-discover and got some good ideas so this is all working now.<br>
<br>
I do however have one more question...<br>
<br>
My app registers a service browser looking for one type of service. That all works well. The part that doesn&#39;t is if my app comes up after a client publishing that service. To reproduce here&#39;s what I do...<br>
<br>
<br>
   Browser              |    Client<br>
========================|===========================<br>
Start Browser App       |<br>
                        | Start published service<br>
App sees it             |<br>
                        | Stop published service<br>
App sees it removed     |<br>
                        | Start published service<br>
App sees it             |<br>
Close app               |<br>
Wait a bit              |<br>
                        |<br>
Start Browser App       |<br>
                        |<br>
Receive resolve failure |<br>
<br>
<br>
How do I fix it so that it still resolves? I&#39;ll keep poking around to see what other apps do, but thought I&#39;d ask.<div><div></div><div class="h5"><br>
<br>
<br>
-- <br>
Nathanael d. Noblet<br>
t 403.875.4613<br>
_______________________________________________<br>
avahi mailing list<br>
<a href="mailto:avahi@lists.freedesktop.org" target="_blank">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>
</div></div></blockquote></div><br></div>