mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Jeremy missed a bind() call when updating these demos. ;)
This commit is contained in:
parent
a8d30d5d66
commit
21801de6dc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue