/** Resumen recepcion */
  private void resumenRecepcion() {
    long lHoras = 0;
    long lMinutos = 0;
    long lSegundos = 0;
    long lTiempo = this.jDialogRecepcion.getlTiempo();
    String mensaje =
        "Transfer End. Received " + this.jDialogRecepcion.getlBytesRecibidos() + " bytes in ";
    cFtp ftp = cFtp.getFTP();

    if (lTiempo > 1000) {
      // Calcular Horas
      lHoras = ((lTiempo / 1000) / 60) / 60;
      lMinutos = ((lTiempo / 1000) / 60) % 60;
      lSegundos = ((lTiempo / 1000) % 60);

      // Establecer el tiempo.....
      if (lHoras > 0) mensaje += (lHoras + " hr. " + lMinutos + " min.");
      else if (lMinutos > 0) mensaje += (lMinutos + " min. " + lSegundos + " seg.");
      else mensaje += (lSegundos + " seg.");
    } else mensaje += (lTiempo + " mseg.");

    double dKB_seg = this.jDialogRecepcion.getdKB_seg();

    // Comprobar que no es 0
    if (lTiempo == 0 && dKB_seg == 0) dKB_seg = this.jDialogRecepcion.getlBytesRecibidos();

    if (dKB_seg > 1) {
      int iParteEntera = (int) (dKB_seg);
      int iParteDecimal = (int) (dKB_seg * 100) % 100;
      ftp.insertRecepcionString(
          mensaje + " Transfer rate: " + iParteEntera + "." + iParteDecimal + " KB/Seg",
          "icono_tarea");
    } else {
      int i = (int) (dKB_seg * 100);
      ftp.insertRecepcionString(mensaje + " Transfer rate: 0." + i + " KB/Seg", "icono_tarea");
    }
  }
  /** Lee del flujo de entrada todos lo bytes y los tira. */
  private void tirarBytes() throws IOException {
    cFtp ftp = cFtp.getFTP();

    try {
      this.file = new File("nulo");

      ftp.insertRecepcionString(
          "Transfer just initiated. Waiting next transmission to join...", "icono_informacion");
      while (protocolcFTP.esActiva() && (this.file != null)) {

        byte[] bytes = new byte[this.id_socketIn.available()];
        // Log.log("Bytes disponibles: "+bytes.length,"");
        int iBytesLeidos = this.id_socketIn.read(bytes);

        // FIN DE FLUJO???...
        if (iBytesLeidos == -1) {
          Log.log("tirar bytes : FIN DE FLUJO**************************", "");
          return;
        }
      }
    } finally {
      this.file = null;
    }
  }