From 94e89af1ad36502af5e78932eaa03dbc26d8d829 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 23 Jan 2015 02:59:20 +0100 Subject: Tulip issue #219: Fix comments in simple_tcp_server.py example Fixing some comments. The server listens on 12345 and client connects on 12345, but the comments state 1234. Patch written by bryan.neff. --- examples/simple_tcp_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/simple_tcp_server.py b/examples/simple_tcp_server.py index b796d9b..5f874ff 100644 --- a/examples/simple_tcp_server.py +++ b/examples/simple_tcp_server.py @@ -4,7 +4,7 @@ style and uses asyncio.streams.start_server() and asyncio.streams.open_connection(). Note that running this example starts both the TCP server and client -in the same process. It listens on port 1234 on 127.0.0.1, so it will +in the same process. It listens on port 12345 on 127.0.0.1, so it will fail if this port is currently in use. """ @@ -83,7 +83,7 @@ class MyServer: def start(self, loop): """ - Starts the TCP server, so that it listens on port 1234. + Starts the TCP server, so that it listens on port 12345. For each client that connects, the accept_client method gets called. This method runs the loop until the server sockets -- cgit v1.2.1