Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21801de

Browse files
committed
Jeremy missed a bind() call when updating these demos. ;)
1 parent a8d30d5 commit 21801de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Demo/sockets/echosvr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def main():
1818
else:
1919
port = ECHO_PORT
2020
s = socket(AF_INET, SOCK_STREAM)
21-
s.bind('', port)
21+
s.bind(('', port))
2222
s.listen(1)
2323
conn, (remotehost, remoteport) = s.accept()
2424
print 'connected by', remotehost, remoteport

0 commit comments

Comments
 (0)