def BJregisterService(protocol, port): try: from Plugins.Extensions.Bonjour.Bonjour import bonjour service = bonjour.buildService(protocol, port, 'ModernWebif') bonjour.registerService(service, True) return True except ImportError, e: return False
def BJregisterService(protocol, port): try: from Plugins.Extensions.Bonjour.Bonjour import bonjour service = bonjour.buildService(protocol, port, 'OpenWebif') bonjour.registerService(service, True) return True except ImportError, e: return False
def BJregisterService(protocol, port): log("",None,"EL_HttpServer::BJregisterService()") try: from Plugins.Extensions.Bonjour.Bonjour import bonjour service = bonjour.buildService(protocol, port, 'EnigmalightRemote') bonjour.registerService(service, True) return True except ImportError, e: return False
def registerBonjourService(protocol, port): try: from Plugins.Extensions.Bonjour.Bonjour import bonjour service = bonjour.buildService(protocol, port) bonjour.registerService(service, True) print "[WebInterface.registerBonjourService] Service for protocol '%s' with port '%i' registered!" %(protocol, port) return True except ImportError, e: print "[WebInterface.registerBonjourService] %s" %e return False
def BJregisterService(protocol, port): try: from Plugins.Extensions.Bonjour.Bonjour import bonjour service = bonjour.buildService(protocol, port, 'OpenWebif') bonjour.registerService(service, True) except: # nosec pass try: servicetype = '_' + protocol + '._tcp' enigma.e2avahi_announce(None, servicetype, port) except: # nosec pass