Changeset 253 in flair-src for trunk/tools/FlairGCS/src/UdtSocket.cpp


Ignore:
Timestamp:
Jul 13, 2018, 5:59:30 PM (3 years ago)
Author:
Sanahuja Guillaume
Message:

correction bug logs non fonctionnels

File:
1 edited

Legend:

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

    r252 r253  
    4545  connect(heartbeat_timer, SIGNAL(timeout()), this, SLOT(heartbeat()));
    4646  heartbeat_timer->start(HEARTBEAT_TIMER);
    47   heartbeat();//send directly the first one
     47  //heartbeat();//send directly the first one, but conflicts if this socket is for logs... TODO: delay start of watchdog timer on uav side
    4848  udtstats_timer = new QTimer(this);
    4949  connect(udtstats_timer, SIGNAL(timeout()), this, SLOT(getUTDStats()));
     
    166166        size=UDT::recvmsg(socket, buf, buf_size);
    167167     
    168         //fprintf(stderr,"recu %i\n",size);
     168        //fprintf(stderr,"recu %i %x\n",size,buf[0]);
    169169        if (size > 0) {
    170170          total_received+=size;
     
    184184            }
    185185            case START_SENDING_FILES: {
     186              printf("log\n");
    186187              if((unsigned char)uncompressbuf[0]==XML_HEADER && socketType==unknown) {
    187188                socketType=log;
     
    192193              deleteLater();
    193194              stop=true;
     195              size=-1;//exit from do while loop
    194196              destroySocket=false;
    195197              break;
     
    202204                emit newConnectionLayout(remoteName);
    203205              }
    204             case DATAS_BIG_ENDIAN:
    205             case DATAS_LITTLE_ENDIAN:
     206            case DATA_BIG_ENDIAN:
     207            case DATA_LITTLE_ENDIAN:
    206208              emit dataReady(buf, size );
    207209              break;
     
    214216              break;
    215217            default:
    216               fprintf(stderr,"trame non supportée %x\n", buf[0]);
     218              fprintf(stderr,"udt trame non supportée %x\n", buf[0]);
    217219          }
    218220        } else {
Note: See TracChangeset for help on using the changeset viewer.