Thread View: borland.public.cppbuilder.internet.web
5 messages
5 total messages
Started by Colin B Maharaj
Thu, 30 Sep 2004 11:36
Writing an FTP Server
Author: Colin B Maharaj
Date: Thu, 30 Sep 2004 11:36
Date: Thu, 30 Sep 2004 11:36
13 lines
1340 bytes
1340 bytes
Hi all, has anyone written an FTP server? I am in the process of writing a simple one at the moment but I am stuck on the PASV support. I am able to login, list, and receive a file (does not support downloads yet). But the PASV command seems tricky any ideas... BTW: Is the source for the IdFTP (client they have no server) available anywhere??? This I can use to help trouble shoot my application.... Willing to post code so if necessary....
Re: Writing an FTP Server
Author: Remy Lebeau (TeamB)
Date: Thu, 30 Sep 2004 17:31
Date: Thu, 30 Sep 2004 17:31
31 lines
1920 bytes
1920 bytes
"Colin B Maharaj" <noreply@myhost.com> wrote in message news:415befb1$1@newsgroups.borland.com... > has anyone written an FTP server? Yes. > I am in the process of writing a simple one at the moment I would suggest that you use a pre-made FTP component rather than writing your own code from scratch. > the PASV command seems tricky any ideas... What is so tricky about it? When you receive a PASV request, simply open another listening server socket and then send back the IP and port that it is listening on. When the client performs a file transfer afterwards, the client will connect to that second socket and send the data over it. When no PASV command has been sent yet before a transfer, there is no second socket available on your server's end, so the client would have to open its own server socket which your server would then connect to instead for the transfer. > Is the source for the IdFTP (client they have no server) > available anywhere??? Yes. Indy is open-source, the full source code is always available. Gambit
Re: Writing an FTP Server
Author: Colin B Maharaj
Date: Fri, 01 Oct 2004 11:11
Date: Fri, 01 Oct 2004 11:11
31 lines
1752 bytes
1752 bytes
Remy Lebeau (TeamB) wrote: > >>has anyone written an FTP server? > > > Yes. Cool!! BCB6 Code available??? > > >>I am in the process of writing a simple one at the moment > > > I would suggest that you use a pre-made FTP component rather than writing > your own code from scratch. > I prefer the challenge of doing it myself. I have reasons for this, and I am making progress. Also what comes with Indy is a Trivial FTP server and I am not sure how this differs with a RFC 959 FTP server. > >>the PASV command seems tricky any ideas... > I saw a bug in my code where I was sending two cr,lf pairs instead of one and this was messing up the client end. Thanks Remy for your consideration (as always)...
Re: Writing an FTP Server
Author: Remy Lebeau (TeamB)
Date: Fri, 01 Oct 2004 17:45
Date: Fri, 01 Oct 2004 17:45
12 lines
1274 bytes
1274 bytes
"Colin B Maharaj" <noreply@myhost.com> wrote in message news:415d3b4a$1@newsgroups.borland.com... > Also what comes with Indy is a Trivial FTP server and > I am not sure how this differs with a RFC 959 FTP server. You are referring to TIdTrivialFTPServer. Indy also has a full RFC 959 FTP server, TIdFTPServer, as well. Gambit
Re: Writing an FTP Server
Author: Colin B Maharaj
Date: Sat, 02 Oct 2004 02:21
Date: Sat, 02 Oct 2004 02:21
9 lines
1249 bytes
1249 bytes
will this be in indy 8 or 9? will be a component or is it just source???? Indy also has a full RFC 959 FTP > server, TIdFTPServer, as well. > > > Gambit > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads