public void connect(String host,int port) throws SocksException, IOException {
  this.remoteServerHost=checkNotNull(host,"Argument [host] may not be null");
  this.remoteServerPort=checkNotNull(port,"Argument [port] may not be null");
  proxy.buildConnection();
  initProxyChain();
  proxy.requestConnect(remoteServerHost,remoteServerPort);
}

public void connect ( String host , int port ) throws SocksException , IOException { this . remoteServerHost = checkNotNull ( host , "Argument [host] may not be null" ) ; this . remoteServerPort = checkNotNull ( port , "Argument [port] may not be null" ) ; proxy . buildConnection ( ) ; initProxyChain ( ) ; proxy . requestConnect ( remoteServerHost , remoteServerPort ) ; }
connect to socks server and server will proxy remote server .
