Commit 21801de6 authored by Fred Drake's avatar Fred Drake

Jeremy missed a bind() call when updating these demos. ;)

parent a8d30d5d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment