Changeset 257 in flair-src for trunk/tools/FlairGCS/src/file_ui.cpp


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.