diff options
author | Fred Drake <fdrake@acm.org> | 2000-08-25 16:03:27 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-08-25 16:03:27 (GMT) |
commit | 21801de6dceb53171189da2cb0883311ba474b2f (patch) | |
tree | 86963e4610bcbc67acd776ae28ff05367ad2c6cf /Demo/sockets/echosvr.py | |
parent | a8d30d5d667b32b1b296c0926a0e80709bd6fab3 (diff) | |
download | cpython-21801de6dceb53171189da2cb0883311ba474b2f.zip cpython-21801de6dceb53171189da2cb0883311ba474b2f.tar.gz cpython-21801de6dceb53171189da2cb0883311ba474b2f.tar.bz2 |
Jeremy missed a bind() call when updating these demos. ;)
Diffstat (limited to 'Demo/sockets/echosvr.py')
-rwxr-xr-x | Demo/sockets/echosvr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/sockets/echosvr.py b/Demo/sockets/echosvr.py index c1acf6c..a37f9c2 100755 --- a/Demo/sockets/echosvr.py +++ b/Demo/sockets/echosvr.py @@ -18,7 +18,7 @@ def main(): else: port = ECHO_PORT s = socket(AF_INET, SOCK_STREAM) - s.bind('', port) + s.bind(('', port)) s.listen(1) conn, (remotehost, remoteport) = s.accept() print 'connected by', remotehost, remoteport |