def configure():
params, pipes, args = command.configure(rest_server=True)
port = args.rest_api_port
reactor.listenTCP(port, create_site(params, pipes))
@reactor.callWhenRunning
def startup_message():
print 'Packet Queue is running. Configure at http://localhost:%i' % port
sys.stdout.flush()
评论列表
文章目录