Atozed Forums

Full Version: ChainedProxy
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Has anyone used the ChainedProxy property?
Is there any examples of it's usage?
(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.