Internet Direct (Indy) Version 9.0.2 Beta
TIdIOHandlerSocket.SocksInfo
Implements support for proxied client connection in the IO handler.

property SocksInfo: TIdSocksInfo;
Description
SocksInfo is a TIdSocksInfo property that provides support for proxied client connections for the system identified in Host and Port. SocksInfo is used when ConnectClient is called to establish the client connection to a remote computer system, and provides the actual Host address and port number used for the client connection for SOCKS version 4 and 5 support using the TIdSocksInfo.MakeSocksConnection method.

Reading the value of SocksInfo will insure that an object instance is created at runtime when a SocksInfo has not been assigned for the IO Handler.

Assigning SocksInfo for the IO Handler will insure that a previous TIdSocksInfo object instance, created at runtime or owned by a different form than the current object, is freed and released prior to assigning the new value.

SocksInfo will be freed in Destroy when the object instance has been created at runtime and theowner form has not been assigned.