Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Mar : Re: Intercepting data with TIdMappedPort
| Subject: | Re: Intercepting data with TIdMappedPort |
| Posted by: | "gavin" (gavin.watkins..@preventon.comment) |
| Date: | Fri, 17 Mar 2006 16:30:17 |
> Hi,
>
> I've got a simple proxy server running with TIdMappedPortTCP. I would like
> to "intercept" all data that is sent and received by the server. I thought
> this could be achieved with the TIdInterceptConnection component, but it
> doesn't "plug" into the intercept reference of TIdMappedPortTCP. (It
> requires TIdServerIntercept but there is no such component...).
>
> Could anyone advise what I need to do?
> (Using indy9.0.18)
>
> Thank you,
> Bowda
You can use OnExecute and OnOutboundData to get the data being transfered. Its
stored in AThread.NetData.
Use OnExecute for incoming data and OnOutboundData for outgoing data
Cheers
Gavin
none