Atozed Forums
ChainedProxy - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Indy (https://www.atozed.com/forums/forum-8.html)
+--- Forum: Indy General Discussion (https://www.atozed.com/forums/forum-9.html)
+--- Thread: ChainedProxy (/thread-1488.html)



ChainedProxy - Robert Gilland - 01-14-2020

Has anyone used the ChainedProxy property?
Is there any examples of it's usage?


RE: ChainedProxy - rlebeau - 01-15-2020

(01-14-2020, 11:24 PM)Robert Gilland Wrote: Has anyone used the ChainedProxy property?

Not personally, no.  But I am familiar with the property.

(01-14-2020, 11:24 PM)Robert Gilland Wrote: Is there any examples of it's usage?

No, but it should be very straight forward:

- Setup a separate TIdCustomTransparentProxy-derived component (TIdSocksInfo, TIdConnectThroughHttpProxy, etc) for each proxy you need to connect to (SOCKS, HTTP, etc), each with its own Host/Port, etc.  Make sure each proxy is set to Enabled=True.

- Link the proxy components together via the ChainedProxy property, in the order that you want the proxies to connect to each other.

- Assign a TIdIOHandlerStack component to the IOHandler property of the TCP client you are wanting to use.

- Assign the first proxy component in the chain to the TIdIOHandlerStack.TransparentProxy property.