commit | 21801de6dceb53171189da2cb0883311ba474b2f | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Fri Aug 25 16:03:27 2000 +0000 |
committer | Fred Drake <fdrake@acm.org> | Fri Aug 25 16:03:27 2000 +0000 |
tree | 86963e4610bcbc67acd776ae28ff05367ad2c6cf | |
parent | a8d30d5d667b32b1b296c0926a0e80709bd6fab3 [diff] [blame] |
Jeremy missed a bind() call when updating these demos. ;)
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 @@ 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