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

Lennart Poettering lennart at poettering.net
Thu Apr 2 09:23:29 PDT 2009


On Wed, 01.04.09 16:07, Florian Erfurth (f.erfurth at reel-multimedia.com) wrote:

> 
> Hi, after examinating the source browse-avahi.c I found some answers 
> myself. I can use only 1 simple_poll by using 2 different browser (the 
> one for service_type and the other for service). It works great.
> 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.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4


More information about the avahi mailing list