Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Re: TidFTPSever turn of server safe?

www.cryer.info
Managed Newsgroup Archive

Re: TidFTPSever turn of server safe?

Subject:Re: TidFTPSever turn of server safe?
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Thu, 1 Mar 2007 10:17:41

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

> And where do i find this list?

It is a propety of TIdTCPServer.  Please read the documentation.

> > You have to track that yourself.
>
> You mean i have to rewrite the Tstream class?

That is part of it, as that is the only way to detect when a transfer
is finished.  You will have to set up your own list of download
information, and then use the OnStoreFile and OnRetreiveFile events,
and the TStream destructor, to keep that list up-to-date.

> >> or maybe count the usersLogins-disconnects=users left on server?
> >
> > The server does keep track of that much for you.
>
> They do? Is there a value or something i can read from?

Again, please read the documentation.  In the Threads (Indy 9) or
Contexts (Indy 10) list, the server holds TIdFTPServerThread (Indy 9)
or TIdFTPServerContext (Indy 10) object instances, one for each
client.  That will tell you how many clients are connected, and they
have a UserName property available, so you will know who is logged in.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive