def process(conn, coro=None):
    global n
    if sys.version_info.major >= 3:
        eol = ord('/')
    else:
        eol = '/'
    data = ''.encode()
    while True:
        data += yield conn.recv(128)
        if data[-1] == eol:
            break
    conn.close()
    n += 1
    print('recieved: %s' % data)
dataset/ETHPy150Open pgiri/asyncoro/examples/tut_sock_server.py/process/original