idasen_controller/main.py
async def run_server(client, config):
    """Start a tcp server to listen for commands"""
    def disconnect_callback(client, _ = None):
        print("Lost connection with {}".format(client.address))
        asyncio.create_task(connect(client))
    client.set_disconnected_callback(disconnect_callback)
    server = await asyncio.start_server(functools.partial(run_forwarded_command, client, config), config['server_address'], config['server_port'])
    print("Server listening")
    await server.serve_forever()
Start a tcp server to listen for commands
Start a tcp server to listen for commands
Start a tcp server to listen for commands
async def run_server(client, config):
    def disconnect_callback(client, _ = None):
        print("Lost connection with {}".format(client.address))
        asyncio.create_task(connect(client))
    client.set_disconnected_callback(disconnect_callback)
    server = await asyncio.start_server(functools.partial(run_forwarded_command, client, config), config['server_address'], config['server_port'])
    print("Server listening")
    await server.serve_forever()
async def run_server ( client , config ) : def disconnect_callback ( client , _ = None ) : print ( "Lost connection with {}" . format ( client . address ) ) asyncio . create_task ( connect ( client ) ) client . set_disconnected_callback ( disconnect_callback ) server = await asyncio . start_server ( functools . partial ( run_forwarded_command , client , config ) , config [ 'server_address' ] , config [ 'server_port' ] ) print ( "Server listening" ) await server . serve_forever ( )
Start a tcp server to listen for commands
Start a tcp server to listen for commands
"""Start a tcp server to listen for commands"""
client
config