Ejemplo n.º 1
0
	def __init__(self):
		ZeroConfBrowserBase.__init__(self)

		import dbus.mainloop.glib
		dbus.mainloop.glib.threads_init()

		self.pending = []
	def __init__(self):
		ZeroConfBrowserBase.__init__(self)

		types = []
		for stype in ['_tp', '_tps', '_tp-http', '_tp-https']:
			types.append(stype+'._tcp.local.')
		self.types = types		

		try:
			zeroconf = Zeroconf.Zeroconf("0.0.0.0")
			self.browser = Zeroconf.ServiceBrowser(zeroconf, self.types, self)
		except socket.error, e:
			print "Unable to create pyZeroconf Browser", e
			self.browser = None
	def __init__(self):
		ZeroConfBrowserBase.__init__(self)
		self._exit = False