Article View: borland.public.cppbuilder.internet.socket
Article #2660Re: How can I get the event when the transfer is finished in FTP?
From: Leo Zhang
Date: Mon, 06 Mar 2006 23:32
Date: Mon, 06 Mar 2006 23:32
21 lines
1748 bytes
1748 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote: > >"Leo Zhang" <zhangshile342@yahoo.com.cn> wrote in message >news:440b7b7f$1@newsgroups.borland.com... > >> Hi all. I'm developing a FTP server using Indy FTP Server. I >> want to do sth on the server as soon as the file uploading is >> finished. How can I capture this event? > >There currently is no event available for that. The only option is to >derive your own TStream class, instantiate it in the OnStoreFile event, >track what you need to while the file is being streamed, and then finally do >what you need to when the stream is being destroyed. > > >Gambit > > I think I may get a solution. There is a property "DataChannelThread" in TIdFTPServerThread, and I can handle its OnStopped. I tried and it seemed OK. :-)
Technical Details
Message-ID:
<440cd498$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.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-mailReferences:
<440b7b7f$1@newsgroups.borland.com> <440c7f44$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: "Leo Zhang" <zhangshile342@yahoo.com.cn> Sender: "Leo Zhang" <zhangshile342@yahoo.com.cn> Reply-To: "Leo Zhang" <zhangshile342@yahoo.com.cn> Subject: Re: How can I get the event when the transfer is finished in FTP? Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 61.129.42.37 References: <440b7b7f$1@newsgroups.borland.com> <440c7f44$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <440cd498$1@newsgroups.borland.com> Date: 6 Mar 2006 16:32:24 -0700 X-Trace: newsgroups.borland.com 1141691544 207.105.83.66 (6 Mar 2006 16:32:24 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.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