private void connect(InetAddress anAddr,int aPort,int timeout) throws IOException {
  InetAddress normalAddr=anAddr.isAnyLocalAddress() ? InetAddress.getLocalHost() : anAddr;
  if (streaming && usingSocks()) {
    socksConnect(anAddr,aPort,0);
  }
 else {
    IoBridge.connect(fd,normalAddr,aPort,timeout);
  }
  super.address=normalAddr;
  super.port=aPort;
}

private void connect ( InetAddress anAddr , int aPort , int timeout ) throws IOException { InetAddress normalAddr = anAddr . isAnyLocalAddress ( ) ? InetAddress . getLocalHost ( ) : anAddr ; if ( streaming && usingSocks ( ) ) { socksConnect ( anAddr , aPort , 0 ) ; } else { IoBridge . connect ( fd , normalAddr , aPort , timeout ) ; } super . address = normalAddr ; super . port = aPort ; }
connects this socket to the specified remote host address / port .
