Re: SOCKSmodule ok except for ftplib

Daniel W. Connolly (connolly@hal.com)
Mon, 09 May 1994 18:07:49 -0500

In message <199405092212.PAA05760@infoseek.com>, Steve Kirsch writes:
>in your ftplib, make sure you have sock.listen(1), and not sock.listen(0).
>
>If this works, you might want to post it to the group.
>

Thanks, but listen(1) doesn't seem to behave any differently from listen(0)...

The problem was: there's a magic argument to the SOCKS version of
bind() -- you have to remember the remote address from the last
connect().

So I hacked up socksmodule.c and ftplib.py appropriately, and now
my pthon interpreter groks ftp over socks!

Here's the latest stuff...

http://www.hal.com/%7Econnolly/dist/socksForPython.tar.gz
(13760bytes May 9 18:04)

Dan