Internet Direct (Indy) Version 9.0.2 Beta
TIdSocksInfo.MakeSocksConnection
Opens a SOCKS connection using version-specific connection handling.

procedure MakeSocksConnection(const AHost: string; const APort: Integer);
Parameters
const AHost: string
Host name or IP address for a socks connection request.

const APort: Integer
Port number for a socks connection request.

Description
MakeSocksConnection is a procedure that allows the client to establish a socket connection to the proxy server for the destination address identified in AHost and APort. MakeSocksConnection insures that the correct connection processing is performed for the SOCKS Version required for the client connection.

MakeSocksConnection calls MakeSocks4Connection when Version contains the value svSocks4 or svSocks4A. MakeSocksConnection calls MakeSocks5Connection when Version contains the value svSocks5.