Changing throttle of actual transfers?

Giganews Newsgroups
Subject: Changing throttle of actual transfers?
Posted by:  Gordon K√§stner (Gordon.Kaestn…@gmx.de)
Date: Mon, 29 Aug 2005

Hello,

I'm using the OnDataChannelCreate/Destroy events to chain an
IdInterceptThrottler to an IdFtp.

procedure TDaThread.DataChannelCreate(ASender: TObject; ADataChannel:
TIdTCPConnection);
var
  LThrottle: TIdInterceptThrottler;
begin
  LThrottle := TIdInterceptThrottler.Create(ADataChannel);
  ADataChannel.IOHandler.Intercept := LThrottle;
  LThrottle.BitsPerSec := curSpeed;
end;

But how can I access the DataChannel while the ftp client transfers a
file? I that possible at all?

Thanks in advance

God bless you

Replies