Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Feb : Re: TidFTPServer download onWork?

www.cryer.info
Managed Newsgroup Archive

Re: TidFTPServer download onWork?

Subject:Re: TidFTPServer download onWork?
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Wed, 28 Feb 2007 09:51:39

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

> Checked my FTP Client log and i couldnīt see any
> "Download finshed" message sent to the server.

That is because there isn't any.  That is not how the FTP protocol
works.

> So how does TidFTPServer know that the thread has finsihed itīs
download?

Data transfers are always performed on a secondary socket connection
(which is why FTP is not a very firewall/router friendly protocol in
general).  The end of a transfer is indicated by that socket simply
being closed by either party.

> How do i look for that?

You don't.  Indy hides it from you.

> Would be great if i could from my server detect how much percent it
> is to download from that thread...like an OnWork event or something?

There is no such event available in TIdFTPServer.  The only way to
track transfer progress on the server side is to write your own
TStream class that overrides the virtual Read() and Write() methods,
and optionally the destructor as well, as the TStream is freed
automatically at the end of the transfer.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive