Re: Indy 10 IdFTP.Intercept

Giganews Newsgroups
Subject: Re: Indy 10 IdFTP.Intercept
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Wed, 17 Mar 2004

"Aigron" <jean-pierre.aigr…@wanadoo.fr> wrote in message
news:0DC69CB7EA95E240jean-pierre.aigr…@wanadoo.fr...
> How to get  IdFTP.Intercept in Indy 10, like Indy 9?
> How to connect IdFTP with TIdLogEvent?

Most of the TIdTCPConnection functionality from Indy 9 was moved into
TIdIOHandler in Indy 10.

    procedure TMainForm.TraceCheckBoxClick(Sender: TObject);
    begin
        if TraceCheckBox.Checked then
            IdFtp1.IOHandler.Intercept := IdLogEvent1
        else
            IdFtp1.IOHandler.Intercept := nil;
    end;

Gambit

Replies

In response to

Indy 10 IdFTP.Intercept posted by Aigron on Wed, 17 Mar 2004