コード例 #1
0
ファイル: CommandInterface.py プロジェクト: smok-serwis/smok1
def run():
    '''Run CommandInterface'''
    z = ManagingObject()
    lancero.server.startServer(z, '127.0.0.1',
                               getRegistry('afserver-lancero-port'))
    print 'LANCERO started'
    donothing()
コード例 #2
0
def run():
    tcs = ThreadingTCPServer(('', getRegistry('afserver-p24-port')),
                             P24Handler)
    tcs.serve_forever()
    print 'P24 started'
    donothing()
コード例 #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()
コード例 #4
0
ファイル: afmotemote.py プロジェクト: smok-serwis/smok1
#! /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()
コード例 #5
0
ファイル: Server.py プロジェクト: smok-serwis/smok1
def run():
    tcs = ThreadingTCPServer(('', getRegistry('afserver-p24-port')), P24Handler)
    tcs.serve_forever()
    print 'P24 started'
    donothing()
コード例 #6
0
ファイル: CommandInterface.py プロジェクト: smok-serwis/smok1
def run():
    """Run CommandInterface"""
    z = ManagingObject()
    lancero.server.startServer(z, "127.0.0.1", getRegistry("afsensors-lancero-port"))
    print "LANCERO started"
    donothing()