Re: TIdCompressionIntercept

Giganews Newsgroups
Subject: Re: TIdCompressionIntercept
Posted by:  Remy Lebeau (Indy Team) (no.spam@no.spam.com)
Date: Mon, 9 Oct 2006

"jim" <gy…@vivodinet.gr> wrote in message
news:4912FA85DD0AE340gy…@vivodinet.gr...

> Do i need to create one for EVERY TIdTCPConnection

Yes.

> or will one at the beggining will do it?

You cannot share intercepts across multiple connections.  They are not
designed for that, especially ones like TIdCompressionIntercept that have to
maintain state information between reads/writes that are tied to a specific
connection.

> Do i have to use the OnReceive and OnSend events
> for compression and decompression

No.

> or it will work on its own?

Yes.

Gambit

Replies

None

In response to

TIdCompressionIntercept posted by jim on Sun, 08 Oct 2006