Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Feb : FTP Server problems using Indy 9 and Delphi 5.

www.cryer.info
Managed Newsgroup Archive

FTP Server problems using Indy 9 and Delphi 5.

Subject:FTP Server problems using Indy 9 and Delphi 5.
Posted by:"Frankie" (frankjohnsson20..@yahoo.se)
Date:Mon, 26 Feb 2007 15:45:42

Hi!

Been away from the Application programming stuff for a while...been
doing my coding on the web.

have some questions:
1. Are people still using Indy to work with Internet stuff?

2. I´m using Delphi 5 and Indy 9.0.19. And i would LOVE if someone has a
demo showing an FTP Server. Found an old demo but it lacks a lot of futures.

3. When i download a file from the server i get big problems when trying
to download a big file (350 Mb)...using this code:
procedure TfrmMain.ftpServerRetrieveFile(ASender: TIdFTPServerThread;
   const AFileName: String; var VStream: TStream);
var
  AppDir: String;
begin
AppDir:=edtDirSearchPath.Text;
VStream := TFileStream.Create(AppDir+AFilename,fmOpenRead);
end;

It works on a small txt file but not on a big video file, why?

4. How can i find out the ip of the user who logs in?

5. How can i detect client logging off. I found that the TidFTPServer
"OnDisconnect" event is not the way to go.

Thanx in advance
Frankie

Replies:

www.cryer.info
Managed Newsgroup Archive