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


Ignore:
Timestamp:
Jul 23, 2018, 5:01:27 PM (3 years ago)
Author:
Sanahuja Guillaume
Message:

maj

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

Legend:

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

    r248 r255  
    173173  }
    174174  if (connections.count() == 2) {
    175     tabBar->addTab(icon_green,hiddenTabName);
     175    if(connections[0].socket!=NULL) {
     176      tabBar->addTab(icon_green,hiddenTabName);
     177    } else {
     178      tabBar->addTab(icon_red,hiddenTabName);
     179    }
    176180    currentTab = 0;
    177181  }
  • trunk/tools/FlairGCS/src/UdtSocket.cpp

    r254 r255  
    160160        fprintf(stderr,"prob %i\n", UDT::getlasterror().getErrorCode());
    161161    } else if(readfds==socket && num==1 && rv==1) {
    162        
    163162      int size;
    164163      do {
    165         QCoreApplication::processEvents();//let watchdog timer send heartbeat
    166164        size=UDT::recvmsg(socket, buf, buf_size);
    167165     
     
    184182            }
    185183            case START_SENDING_FILES: {
    186               printf("log\n");
     184              //printf("log\n");
    187185              if((unsigned char)uncompressbuf[0]==XML_HEADER && socketType==unknown) {
    188186                socketType=log;
     
    209207              break;
    210208            case CLOSING_CONNECTION:
    211               fprintf(stderr,"%s, connection closed\n",name.toLocal8Bit().constData());
     209              fprintf(stderr,"%s, connection closed by remote\n",name.toLocal8Bit().constData());
    212210              emit dataReady(buf, size );
    213211              stop = true;
Note: See TracChangeset for help on using the changeset viewer.