diff options
author | Guido van Rossum <guido@python.org> | 1994-02-28 09:25:38 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-02-28 09:25:38 (GMT) |
commit | 749908b9b6646216eacab2b542d0557a9fd36598 (patch) | |
tree | 1d1f299d9962704f98293acd2a784c9d95025f77 /Demo/sockets/ftp.py | |
parent | ea6f6ed80c08eeeb467952d4672de12d84064593 (diff) | |
download | cpython-749908b9b6646216eacab2b542d0557a9fd36598.zip cpython-749908b9b6646216eacab2b542d0557a9fd36598.tar.gz cpython-749908b9b6646216eacab2b542d0557a9fd36598.tar.bz2 |
listen(0) -> listen(1)
Diffstat (limited to 'Demo/sockets/ftp.py')
-rwxr-xr-x | Demo/sockets/ftp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/sockets/ftp.py b/Demo/sockets/ftp.py index f5bbdf5..1b672d3 100755 --- a/Demo/sockets/ftp.py +++ b/Demo/sockets/ftp.py @@ -80,7 +80,7 @@ def newdataport(s, f): nextport = (nextport+1) % 16 r = socket(AF_INET, SOCK_STREAM) r.bind(gethostbyname(gethostname()), port) - r.listen(0) + r.listen(1) sendportcmd(s, f, port) return r |