[avahi] Avahi question
Trent Lloyd
lathiat at bur.st
Tue Jun 5 15:10:27 PDT 2007
Hi Lezan,
Lezan Hawizy wrote:
> Hello,
>
> I am trying to use Avahi as part of my work. I am trying to create some
> services that use Avahi as a way of notifying each other of their
> presence and services.
> I am implementing this in python and I have found a way to publish a
> service on avahi but I am somehow finding is really difficult to find a
> way of implementing the discover tool. I've checked the
> avahi-discover.py but the discover code is too interlinked with the
> glade code. I was wondering if there is a python file that could list
> services based on their service_type.
>
> I am currently looking into python dbus code so any help (even some
> information about a python avahi API) would be greatly appreciated.
>
Try this:
http://www.avahi.org/browser/tags/release-0.5.2/avahi-utils/avahi-browse.in
This is a fairly complete example, however we have since added the
'flags' paramater to a couple calls, so double check the D-Bus API docs
at http://avahi.org/wiki/ProgrammingDocs for where to put any 'flags'
paramaters
From memory ServiceBrowserNew & ResolveService require flags.
Cheers,
Trent
> Kind Regards,
> Lezan
>
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi
>
>
More information about the avahi
mailing list