Changeset 257 in flair-src for trunk/tools/FlairGCS


Ignore:
Timestamp:
Jul 24, 2018, 2:48:16 PM (3 years ago)
Author:
Sanahuja Guillaume
Message:

set file ui in gcs in blocking receaving mode

Location:
trunk/tools/FlairGCS/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/FlairGCS/src/DoubleSpinBox.cpp

    r15 r257  
    2020  doublespinbox->setSingleStep(step);
    2121  doublespinbox->setDecimals(decimals);
    22   if (suffix != "")
    23     doublespinbox->setSuffix(suffix);
     22  if (suffix != "") doublespinbox->setSuffix(suffix);
    2423  adjust_decimals(value);
    2524  doublespinbox->setValue(value.toDouble());
     
    9291}
    9392
    94 void DoubleSpinBox::ui_to_xml(void) { SetValue(doublespinbox->cleanText()); }
     93void DoubleSpinBox::ui_to_xml(void) {
     94  SetValue(doublespinbox->cleanText());
     95}
    9596
    9697void DoubleSpinBox::Reset(void) {
  • trunk/tools/FlairGCS/src/file_ui.cpp

    r248 r257  
    3636    fprintf(stderr,"UDT::setsockopt error (UDT_SNDSYN) %s\n",UDT::getlasterror().getErrorMessage());
    3737  }
     38 
     39  if (UDT::setsockopt(socket, 0, UDT_RCVSYN, &blocking, sizeof(bool)) != 0) {
     40    fprintf(stderr,"UDT::setsockopt error (UDT_RCVSYN) %s\n",UDT::getlasterror().getErrorMessage());
     41  }
    3842   
    3943  linger _linger;
     
    128132        bytesRead = UDT::recvmsg(socket, recv_buf, size);
    129133        if (bytesRead != size) {
    130           appendToLog(QString("      error receiving file! (%1/%2)").arg(bytesRead).arg(size));
     134          appendToLog(QString("      error receiving file! (%1/%2): %3").arg(bytesRead).arg(size).arg(UDT::getlasterror().getErrorMessage()));
    131135          free(recv_buf);
    132136          break;
Note: See TracChangeset for help on using the changeset viewer.