public boolean canConnect(){
  try {
    wake();
    ClientSocket stream=open();
    if (stream != null) {
      stream.free(stream.getIdleStartTime());
      return true;
    }
    return false;
  }
 catch (  Exception e) {
    log.log(Level.FINER,e.toString(),e);
    return false;
  }
}

public boolean canConnect ( ) { try { wake ( ) ; ClientSocket stream = open ( ) ; if ( stream != null ) { stream . free ( stream . getIdleStartTime ( ) ) ; return true ; } return false ; } catch ( Exception e ) { log . log ( Level . FINER , e . toString ( ) , e ) ; return false ; } }
returns true if can connect to the client .
