From 4dfa7a27ac0f82288c5e2cec50f765a49017dd45 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 18 Mar 2019 15:47:37 +0000 Subject: [PATCH] Remove Test.py --- Test.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 Test.py diff --git a/Test.py b/Test.py deleted file mode 100644 index c50b4a9..0000000 --- a/Test.py +++ /dev/null @@ -1,25 +0,0 @@ -import asyncio - - -async def tcp_echo_client(message): - reader, writer = await asyncio.open_connection( - '127.0.0.1', 6112) - - print(f'Send: {message!r}') - writer.write(message.encode()) - - data = await reader.read(100) - print(f'Received: {data.decode()!r}') - - print('Close the connection') - writer.close() - await writer.wait_closed() - -loop = asyncio.ProactorEventLoop() -asyncio.set_event_loop(loop) - -for x in range(1): - # asyncio.ensure_future(tcp_echo_client('\0')) - asyncio.ensure_future(tcp_echo_client('%xt%s%t#c%-1%1,2,3,4%\0%xt%s%t#c%-1%1,2,3,4%\0')) - -loop.run_forever()