Example #1
0
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
Example #3
0
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
Example #4
0
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
Example #5
0
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
Example #6
0
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
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
Example #8
0
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