Re: FTP server code in passive mode
From: Ulrich Hobelmann (u.hobelmann_at_web.de)
Date: 09/19/05
- Next message: ssantamariagarcia_at_hotmail.com: "Re: FTP server code in passive mode"
- Previous message: David Schwartz: "Re: Confusion over ports"
- In reply to: ssantamariagarcia_at_hotmail.com: "FTP server code in passive mode"
- Next in thread: ssantamariagarcia_at_hotmail.com: "Re: FTP server code in passive mode"
- Reply: ssantamariagarcia_at_hotmail.com: "Re: FTP server code in passive mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 19 Sep 2005 23:51:20 +0200
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)
- Next message: ssantamariagarcia_at_hotmail.com: "Re: FTP server code in passive mode"
- Previous message: David Schwartz: "Re: Confusion over ports"
- In reply to: ssantamariagarcia_at_hotmail.com: "FTP server code in passive mode"
- Next in thread: ssantamariagarcia_at_hotmail.com: "Re: FTP server code in passive mode"
- Reply: ssantamariagarcia_at_hotmail.com: "Re: FTP server code in passive mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|