]> granicus.if.org Git - python/commitdiff
Jeremy missed a bind() call when updating these demos. ;)
authorFred Drake <fdrake@acm.org>
Fri, 25 Aug 2000 16:03:27 +0000 (16:03 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 25 Aug 2000 16:03:27 +0000 (16:03 +0000)
Demo/sockets/echosvr.py

index c1acf6cc6c29a70c00d7300df039e3365281f60a..a37f9c26eb0e3a83b730e7d867118a4ed9d2f4f5 100755 (executable)
@@ -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