09-19-05 11:02 PM
ssantamariagarcia@hotmail.com wrote:
> I wonder if any of you know the necessary changes in the code to get a
> pasive mode FTP server,or maybe, where to find programming information
> in C language about it.
You need to implement the PASV and EPSV commands. Basically you need to
open a listening socket on your server (on whatever port you like) and
send the client a response indicating your ip and port (for PASV) or
just the port number (for EPSV). The client should then connect to your
socket and issue a command (data transfer, LIST, NLST) and you
send/receive data.
Take a look at how existing clients and servers do it.
--
My mouth says the words, my brain is thinking monstertrucks.
Joey (Friends)
[ Post a follow-up to this message ]
|