Ejemplo n.º 1
0
def run():
    '''Run CommandInterface'''
    z = ManagingObject()
    lancero.server.startServer(z, '127.0.0.1',
                               getRegistry('afserver-lancero-port'))
    print 'LANCERO started'
    donothing()
Ejemplo n.º 2
0
def run():
    tcs = ThreadingTCPServer(('', getRegistry('afserver-p24-port')),
                             P24Handler)
    tcs.serve_forever()
    print 'P24 started'
    donothing()
Ejemplo n.º 3
0
#! /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()
Ejemplo n.º 4
0
#! /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()
Ejemplo n.º 5
0
def run():
    tcs = ThreadingTCPServer(('', getRegistry('afserver-p24-port')), P24Handler)
    tcs.serve_forever()
    print 'P24 started'
    donothing()
Ejemplo n.º 6
0
def run():
    """Run CommandInterface"""
    z = ManagingObject()
    lancero.server.startServer(z, "127.0.0.1", getRegistry("afsensors-lancero-port"))
    print "LANCERO started"
    donothing()