

def server(host, port, coro=None):
    coro.set_daemon()
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    sock = asyncoro.AsyncSocket(host)
    sock.bind((host, port))
    sock.listen(128)
    while True:
        (conn, addr) = (yield sock.accept())
        asyncoro.Coro(process, conn)

dataset/ETHPy150Open pgiri/asyncoro/examples/tut_sock_server.py server/VarMisuse@43/52 `sock`->`host`