mirror of https://github.com/python/cpython
Jeremy missed a bind() call when updating these demos. ;)
This commit is contained in:
parent
a8d30d5d66
commit
21801de6dc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue