Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Dec : IOHandler and Intercept

www.cryer.info
Managed Newsgroup Archive

IOHandler and Intercept

Subject:IOHandler and Intercept
Posted by:"Soeren Muehlbauer" (soeren...@gmx.de)
Date:31 Dec 2005 09:06:03

Hi,

i have tried to do a custom Interceptor for my connections.
I have derived a class from TIdConnectionIntercept and have filled out
the Receive and Send method. In the (derived) Server in DoConnect i
assign this class to AContext.Connection.IOHandler.Intercept. The
Client has this code after the connect. The problem is that the client
doesnt send the correct data. Its always sends the unmodified data. I
have tracked it down to the method WriteDirect in (in my case)
TIdIOHandlerStack which is derived from TIdIOHandler. TIdIOHandlerStack
calls inherited which is ok. TIdIOHandler calls my interception
routine. But the Parameter in WriteDirect isnt "var". So
TIdIOHandlerStack always sends the original data. Is ther a
misunderstanding on my side? I want to have a connection based
interception in the server.

Thanks, Soeren

Replies:

www.cryer.info
Managed Newsgroup Archive