Internet Direct (Indy) Version 9.0.2 Beta
|
procedure MakeSocks4Connection(const AHost: string; const APort: Integer);
MakeSocks4Connection sets the OpCode and Version number for the TIdSocksRequest sent to the proxy server at the location specified in AHost and APort. MakeSocks4Connection will use the host address '0.0.0.1' when Version contains the value svSocks4A.
MakeSocks4Connection also sets the identity for the SOCKS request to the value specified in Username.
MakeSocks4Connection writes the SOCKS request to the Connection for the proxy, and reads the SOCKS response packet. MakeSocks4Connection can raise an exception when the TIdSocksResponse.OpCode contains one of the following values: