Beispiel #1
0
async def run_server(app, live_lyric, *args, **kwargs):
    port = 23333
    host = '0.0.0.0'
    event_loop = asyncio.get_event_loop()
    event_loop.create_task(
        TcpServer(host, port, handle_func=handle).run(app, live_lyric))
    logger.info('Fuo daemon run in {}:{}'.format(host, port))
Beispiel #2
0
 def run_server(self):
     port = 23333
     host = '0.0.0.0'
     event_loop = asyncio.get_event_loop()
     event_loop.create_task(
         TcpServer(host, port, handle_func=self.handle).run())
     logger.info('Fuo daemon run in {}:{}'.format(host, port))
Beispiel #3
0
 def run(self, host='0.0.0.0', port=23333):
     event_loop = asyncio.get_event_loop()
     event_loop.create_task(
         TcpServer(host, port, handle_func=self.handle_conn).run())
     logger.info('Fuo daemon run at {}:{}'.format(host, port))