[avahi] how to browse only two (or all) service types

Ali Mazhar ali_mzr at hotmail.com
Fri Jul 31 02:39:17 PDT 2009


Hi Trent,

Thanks for the info. My application is for a mesh network and therefore I need to see all the workstations which are in the same network just like on line users in a messenger!
Btw, how is it possible to remove a published service, e.g. multicast, from avahi without restarting the daemon. Actually, my application simply publishes a multicast stream port using "avahi-publish" and then start VLC application but when VLC is closed the multicast stops but service still remains in avahi daemon unless I restart it which naturally brings down my avahi browse application. Any tips?

BR, Ali


----------------------------------------
> From: lathiat at bur.st
> To: avahi at lists.freedesktop.org
> Date: Fri, 31 Jul 2009 16:05:45 +0800
> Subject: Re: [avahi] how to browse only two (or all) service types
>
> Hi Ali,
>
> On 31/07/2009, at 3:39 PM, Ali Mazhar wrote:
>
>>
>>
>> Hi,
>>
>> I am writing a Qt application and I need to display data related to
>> "_workstation._tcp" and "_vlc_http._tcp" service types only. Is it
>> possible to achieve this using one browser object? If this is not
>> possible then how can I browse for all service types using one
>> browser object i.e what to send in the 4th argument of
>> "avahi_service_browser_new()" function?
>
> A browser is for a given service type.. so you will need to
> instantiate two if you wish to lookup both workstation and vlc services.
>
> Is there a reason you are looking up workstation services? This will
> typically be pretty noisy as everyone advertises them.
>
> Thanks,
> Trent
>
>>
>> Any quick help will be highly appreciated.
>>
>> BR, AM
>>
>> _________________________________________________________________
>> Windows Live™ Hotmail®: Celebrate the moment with your favorite
>> sports pics. Check it out.
>> http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_photos_072009&cat=sports
>> _______________________________________________
>> avahi mailing list
>> avahi at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/avahi
>>
>
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi

_________________________________________________________________
NEW mobile Hotmail. Optimized for YOUR phone.  Click here.
http://windowslive.com/Mobile?ocid=TXT_TAGLM_WL_CS_MB_new_hotmail_072009


More information about the avahi mailing list