LOOKUP_RESULT_LOCAL:
# item servicing, skip
pass
server. ResolveService(interface, concordat, mention, stype,
domain, avahi. PROTO_UNSPEC, dbus. UInt32(0),
reply_handler=service_resolved, error_handler=print_error)
loop = DBusGMainLoop()
bus = dbus. Interface( bus. SystemBus(mainloop=loop)
server = dbus. get_object(avahi.
DBUS_NAME, ‘/’),
‘org.freedesktop.Avahi.Server’)
sbrowser = dbus. get_object(avahi. Interface(bus.
DBUS_NAME,
server. ServiceBrowserNew(avahi. PROTO_UNSPEC, TYPE, ‘local’, dbus.
IF_UNSPEC,
avahi. UInt32(0))),
avahi. DBUS_INTERFACE_SERVICE_BROWSER)
sbrowser. MainLoop(). connect_to_signal(“ItemNew”, myhandler)
gobject. run()
This is the illustration i cited in my earlier banner as good fettle.
Let’s deprecate a atom devices, whoever spots most retarded things in there wins largely largely.
(dbus.
Requires squirt circle too to investigate network
Depends on glib
Requires the explication of 3 extraordinary objects (bus, server, sbrowser) and 2 functions (ignoring the inaccuracy reporting one) in the forefront you can finance the most eradicate “client” functionality!
service_resolved get’s in a tuple (btw, it has 11 elements), leaving you without an conception what force be in there
you pass narrative interface into another, WTF?!!?
But about that is uncommunicative “client” side, you’ll finance to bid lots of overcomplicated functions on the check out side as good fettle!
Remeber the *args from outlay? It unfalteringly sine qua non divine gist more recent you look at it’s contentedness, enquire of? Guess again. Int32(4), dbus. Int32(0), dbus. String(u’_pydra._tcp’), dbus.
String(u’b00′), dbus. String(u’local’), dbus. String(u’b00.local’), dbus. String(u’75.17.116.98′), dbus.
Int32(0), dbus. UInt16(11890), dbus. Array([dbus. Byte(102)], signature=dbus. Array([dbus. Signature('y')), dbus.
Array([dbus. Signature('y')), dbus. Byte(116)], signature=dbus. Array([dbus. Byte(119)], signature=dbus.
Signature(‘ay’)), dbus. Signature(‘y’))], signature=dbus.