

def client(host, port, n, coro=None):
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    sock = asyncoro.AsyncSocket(host)
    (yield sock.connect((host, port)))
    msg = ((('%d: ' % n) + ('-' * random.randint(100, 300))) + '/')
    msg = msg.encode()
    (yield sock.sendall(msg))
    sock.close()

dataset/ETHPy150Open pgiri/asyncoro/examples/tut_sock_client.py client/VarMisuse@39/46 `sock`->`host`