[avahi] 1 avahi_simple_poll_loop for 2 (or more) servicetype?

Florian Erfurth f.erfurth at reel-multimedia.com
Mon Apr 6 03:02:30 PDT 2009


Lennart Poettering schrieb:
> On Wed, 01.04.09 16:07, Florian Erfurth (f.erfurth at reel-multimedia.com) wrote:
>
>   
>> Now I've got a problem. I would like fire a function, if a host is not 
>> in network anymore (e.g. somebody pulled out ethernet-cable). Same on 
>> client (on which my small avahi-application runs) if I pulled out the 
>> network-cable. If I disable ethernet, it works fine! :)
>> Idea?
>>     
> You'll get a BROWSER_REMOVE callback when a service goes away or the
> network interfaces it was found on becomes unavailable.
>   
I tested it again with AVAHI_BROWSER_REMOVE, but unfortunatelly it takes 
long time if I pull out the cable. If I turn off eth0 then it works 
fine. Is there no way to detect connection lost (by pulling out the 
cable) as soon as possible?
 I'm afraid the answer would be like: No. :(

cu Floh


More information about the avahi mailing list