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

Florian Erfurth f.erfurth at reel-multimedia.com
Wed Apr 1 07:07:03 PDT 2009

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! :)

cu Floh

Florian Erfurth schrieb:
> Hi,
> I successfully wrote a small tool which get strings (txt-record) from a 
> Host and keep uptodate (if Host changed Text, Client will get new text). 
> For this purpose I use type "_boxMySQL._tcp".
> The host does have other service-type too, called "_boxAVG._tcp". I want 
> keep a list of Hosts with such service and add/remove Host to/from list 
> (with AVAHI_BROWSER_NEW/ AVAHI_BROWSER_REMOVE). Now I've got a question. 
> Is this possible to do both in same poll_loop? I've tried 
> avahi_service_browser_new() with "_box*._tcp", but it didn't work. :(
> Do I need 2 different poll_loop (one for "_boxMySQL._tcp" and other for 
> "_boxAVG._tcp")?
> cu Floh
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi

More information about the avahi mailing list