private void socksConnect(InetAddress applicationServerAddress,int applicationServerPort,int timeout) throws IOException {
  try {
    IoBridge.connect(fd,socksGetServerAddress(),socksGetServerPort(),timeout);
  }
 catch (  Exception e) {
    throw new SocketException("SOCKS connection failed",e);
  }
  socksRequestConnection(applicationServerAddress,applicationServerPort);
  lastConnectedAddress=applicationServerAddress;
  lastConnectedPort=applicationServerPort;
}

private void socksConnect ( InetAddress applicationServerAddress , int applicationServerPort , int timeout ) throws IOException { try { IoBridge . connect ( fd , socksGetServerAddress ( ) , socksGetServerPort ( ) , timeout ) ; } catch ( Exception e ) { throw new SocketException ( "SOCKS connection failed" , e ) ; } socksRequestConnection ( applicationServerAddress , applicationServerPort ) ; lastConnectedAddress = applicationServerAddress ; lastConnectedPort = applicationServerPort ; }
connect using a socks server .
