Ignore:
Timestamp:
05/28/18 18:23:35 (6 years ago)
Author:
Sanahuja Guillaume
Message:

improve gcs disconnections

File:
1 edited

Legend:

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

    r244 r247  
    1818}
    1919
    20 QString ConnectionLayout::getUDTStats() {
    21   return socket->getUDTStats();
    22 }
    23 
    2420void ConnectionLayout::receive(char *buf, int size) {
    25   // fprintf(stderr,"trame %x\n",buf[0]);
     21   //fprintf(stderr,"trame %x\n",buf[0]);
    2622  // for(int i=0; i<size;i++) fprintf(stderr,"%x ",buf[i]);
    2723  // fprintf(stderr,"\n");
     
    5753    // fprintf(stderr,"recu %i period %i\n",size,period);
    5854    drawDatas(&buf[3], size - 3, period);
     55    break;
     56  }
     57  case CLOSING_CONNECTION: {
     58    deleteLater();
    5959    break;
    6060  }
Note: See TracChangeset for help on using the changeset viewer.