Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8d30d5 commit 21801deCopy full SHA for 21801de
1 file changed
Demo/sockets/echosvr.py
@@ -18,7 +18,7 @@ def main():
18
else:
19
port = ECHO_PORT
20
s = socket(AF_INET, SOCK_STREAM)
21
- s.bind('', port)
+ s.bind(('', port))
22
s.listen(1)
23
conn, (remotehost, remoteport) = s.accept()
24
print 'connected by', remotehost, remoteport
0 commit comments