Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jul : idMappedPortTCP Question

www.cryer.info
Managed Newsgroup Archive

idMappedPortTCP Question

Subject:idMappedPortTCP Question
Posted by:"brian_o" (g..@flashmail.com)
Date:Wed, 6 Jul 2005 11:58:16

Hello fellow INDY users i've recently been writing a so called transparent
proxy-like application via the MappedPortTCP INDY component and i've run
into a dilemma. I am reading the data in the OnOutboundData even by
iterating through the NetData property, this seems to work fine and i am
able to modify the data as I see fit transparently i.e* stripping out
certain words, tags etc... and then forwarding the data on. My question is
how exactly do i send data to the REAL server, do i do this within the
context of the OnExecute event handler? I've already tried this and used
Athread.Connection.WriteBuffer(LPCSTR(buf)^, Length(buf), True); but I
cannot verify if the data is being sent or if i'm even using the correct
method in the event handler.

Any help would be appreicated and i can supply even more details if needed.
I really LOVE this Indy component (idMappedPortTCP) and i don't want to be
forced to use other socket components to ease the pain of sending one buffer
(1 packet) to the real server in this proxy setup i'm writing.

Replies:

www.cryer.info
Managed Newsgroup Archive