public boolean connect(InetSocketAddress saddr,int timeout) throws SocketException {
  int fd;
  InetAddress addr=saddr.getAddress();
  try {
    fd=nfd.getNativeFD();
  }
 catch (  IOException ioe) {
    throw new SocketException(ioe.getMessage());
  }
  if (addr instanceof Inet4Address)   return connect(fd,addr.getAddress(),saddr.getPort(),timeout);
  if (addr instanceof Inet6Address)   return connect6(fd,addr.getAddress(),saddr.getPort(),timeout);
  throw new SocketException("unsupported internet address");
}

public boolean connect ( InetSocketAddress saddr , int timeout ) throws SocketException { int fd ; InetAddress addr = saddr . getAddress ( ) ; try { fd = nfd . getNativeFD ( ) ; } catch ( IOException ioe ) { throw new SocketException ( ioe . getMessage ( ) ) ; } if ( addr instanceof Inet4Address ) return connect ( fd , addr . getAddress ( ) , saddr . getPort ( ) , timeout ) ; if ( addr instanceof Inet6Address ) return connect6 ( fd , addr . getAddress ( ) , saddr . getPort ( ) , timeout ) ; throw new SocketException ( "unsupported internet address" ) ; }
connect the underlying socket file descriptor to the remote host .
