[medusa] ftp server on win95

rushing@n... rushing@n...
Thu, 6 May 1999 17:54:13 -0700 (PDT)


Amos Latteier writes:
> Any suggestions on how to keep socket.gethostbyaddr from failing?
> Alternately, any suggestions on avoiding this call to begin
> with--perhaps we could avoid lines 57, and 58 of ftp_server.py,
> since they seem to really be useful to calculate the HOSTNAME,
> which can be passed to the ftp_server upon initialization...

The IP_ADDRESS setting used to be in there for figuring out what
address to bind the PASV port to. That code was changed a while
ago to use getsockname() instead, so it's not needed any more.

I removed the IP_ADDRESS and HOSTNAME globals, and <ftp_server> now
defaults its hostname to socket.gethostname(), which shouldn't fail
in any case - but even if it does it can be avoided by passing in the
hostname parameter.

There's actually no reason to even have the hostname (other than
reporting status), but I'm loath to remove it completely...

-Sam


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/group/medusa
http://www.eGroups.com - Simplifying group communications