🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TIdIntercept is working ok on Indy10?

#4536
From: Omar Zelaya
Date: Fri, 21 Jan 2005 01:25
23 lines
1819 bytes
Hi,

Is TIdIntercept working ok on Indy 10 or am i using it wrong?

I have assigned a IOHandlerStack component to my TidTcpClient and assigned a 
IdConnectionIntercept to the IOHandler, on the Send and receive event of the 
interceptconnection component i compress the data using a IdCompressor 
component just about the same thing that the TidCompressionIntercept 
does(i'm doing this because i'm having problem with the 
TIdCompressorIntercept component)
when the client call IOHandler->Write, the TIdIOHandler.WriteDirect is 
called and the send method of my IdConnectionIntercept component is 
triggered,
on this method i compress the data and set the new size of Abuffer and copy 
the compressed data back to it, after this when the 
TIdIOHandlerStack.WriteDirect method is called ABuffer contains the original 
data not the compressed one i have moved to ABuffer.

I'm using the latest version, just downloaded from CVS.

Thanks in advance

Omar Zelaya 
Technical Details
Message-ID: <41f056ca$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,5a4b55c4cc5c015d,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Omar Zelaya" <ozelaya@invdochat.com>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: TIdIntercept is working ok on Indy10?
Date: Thu, 20 Jan 2005 19:25:01 -0600
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
NNTP-Posting-Host: 63.245.8.17
Message-ID: <41f056ca$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106269898 63.245.8.17 (20 Jan 2005 17:11:38 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail