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

www.cryer.info
Managed Newsgroup Archive

Re: FTP Server problems using Indy 9 and Delphi 5.

Subject:Re: FTP Server problems using Indy 9 and Delphi 5.
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Mon, 26 Feb 2007 10:16:33

"Frankie" <frankjohnsson2000@yahoo.se> wrote in message
news:45e2f1ec$1@newsgroups.borland.com...

> 1. Are people still using Indy to work with Internet stuff?

Yes.

> 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.

> AppDir:=edtDirSearchPath.Text;

That is not thread-safe.

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

ASender.Connection.Socket.Binding.PeerIP/

> 5. How can i detect client logging off.

There is no specific event for that.  TIdFTPServer handles the QUIT
command internally by simply closing the connection.

> I found that the TidFTPServer "OnDisconnect" event is not the way to
go.

Why not?  It is triggered when a connection with the client is closed.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive