diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-23 02:59:20 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-23 02:59:20 +0100 |
commit | 94e89af1ad36502af5e78932eaa03dbc26d8d829 (patch) | |
tree | 0dce9e0833d347ac49383d040a7da4e45662cf13 /examples | |
parent | f851742b5fd5da700f1eb954235ed57a51a078bd (diff) | |
download | trollius-94e89af1ad36502af5e78932eaa03dbc26d8d829.tar.gz |
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.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/simple_tcp_server.py | 4 |
1 files 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 |