🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2661

Re: How can I get the event when the transfer is finished in FTP?

#2661
From: Remy Lebeau (TeamB)
Date: Tue, 07 Mar 2006 03:23
18 lines
1728 bytes
"Leo Zhang" <zhangshile342@yahoo.com.cn> wrote in message
news:440cd498$1@newsgroups.borland.com...

> I think I may get a solution. There is a property "DataChannelThread"
> in TIdFTPServerThread, and I can handle its OnStopped.

The only problem with that approach is that you won't be told why the thread
is being stopped.  It could be for a successful transfer, but then again it
could also be for a failed transfer, as well as an aborted transfer.  There
is simply no way for your even handler to know which situation is actually
the case.

Also, that approach can only be applied to Indy 9.  Starting with Indy 10,
TIdFTPServer does not use separate threads to perform transfers anymore.


Gambit
Technical Details
Message-ID: <440cfcc3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <440b7b7f$1@newsgroups.borland.com> <440c7f44$1@newsgroups.borland.com> <440cd498$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,4877f981d73f8c3b
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <440b7b7f$1@newsgroups.borland.com> <440c7f44$1@newsgroups.borland.com> <440cd498$1@newsgroups.borland.com>
Subject: Re: How can I get the event when the transfer is finished in FTP?
Date: Mon, 6 Mar 2006 19:23:22 -0800
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <440cfcc3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1141701827 68.69.17.41 (6 Mar 2006 19:23:47 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail