def run(): '''Run CommandInterface''' z = ManagingObject() lancero.server.startServer(z, '127.0.0.1', getRegistry('afserver-lancero-port')) print 'LANCERO started' donothing()
def run(): tcs = ThreadingTCPServer(('', getRegistry('afserver-p24-port')), P24Handler) tcs.serve_forever() print 'P24 started' donothing()
#! /usr/bin/python # coding=UTF-8 from afruntime.server import daemonize, donothing, launch daemonize() from CommandInterface import run as lancerorun print 'Starting LANCERO' launch(lancerorun) from Sensorics import run as sensoricsrun print 'Starting Sensorics' launch(sensoricsrun) donothing()
#! /usr/bin/python # coding=UTF-8 from afruntime.server import daemonize, donothing from afruntime import DEVDB_ROOT from thread import start_new_thread from Handler import start daemonize() for line in open(DEVDB_ROOT+'motemote', 'r').readlines(): id, ip, port = line.split(' ') id = int(id) port = int(port) print 'Starting mote IP='+str(ip)+' PORT='+str(port)+' ID='+str(id) start_new_thread(start, (id, ip, port)) donothing()
def run(): """Run CommandInterface""" z = ManagingObject() lancero.server.startServer(z, "127.0.0.1", getRegistry("afsensors-lancero-port")) print "LANCERO started" donothing()