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:"Frankie" (frankjohnsson20..@yahoo.se)
Date:Sat, 3 Mar 2007 05:00:36

Remy Lebeau (TeamB) skrev:
> "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.

Yeah, i read the docs...and itīs not easy when it says "Topic will be
explalined later" or something like that.

It isnīt easy to learn Indy when the demos absolutely suck 2....they are
more then 3 years old.

Why donīt you just tell me what property i should look for? I found:
FtpServer.Context but there are no User information there...all i got is
a locklist property/method

/Hope you understand my frusrtation...if you donīt i am willing to
explalin it more
Frankie
>
>
> Gambit
>
>


Remy Lebeau (TeamB) skrev:
> "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