Changeset 9882 in ntrip


Ignore:
Timestamp:
Nov 21, 2022, 2:26:29 PM (13 days ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncrtnetuploadcaster.cpp

    r9881 r9882  
    306306    _rtnetStreamBuffer = _rtnetStreamBuffer.mid(1);
    307307    if      (nextEpoch != -1 && nextEpoch < iEpoEnd) {
    308       rtnetStreamBuffer = rtnetStreamBuffer.mid(nextEpoch);
    309       lines = _rtnetStreamBuffer.left(nextEpochEnd).split('\n', QString::SkipEmptyParts);
     308      rtnetStreamBuffer = rtnetStreamBuffer.mid(nextEpoch, nextEpochEnd);cout <<"===\n" << rtnetStreamBuffer.toStdString().c_str() << << "\n===" endl;
     309      lines = _rtnetStreamBuffer.split('\n', QString::SkipEmptyParts);
    310310      if (lines.size() > 2) {
    311311        decodeRtnetEpoch(lines);
    312312      }
    313       nextEpoch    = _rtnetStreamBuffer.indexOf('*');
    314       _rtnetStreamBuffer = _rtnetStreamBuffer.mid(nextEpoch);
    315 
    316     }
    317     else if (nextEpoch != -1 && nextEpoch >= iEpoEnd) {
     313      nextEpochEnd = rtnetStreamBuffer.indexOf("EOE");
     314      _rtnetStreamBuffer = _rtnetStreamBuffer.mid(nextEpochEnd+3);
     315
     316    }
     317    else if (nextEpoch != -1 && nextEpoch >= iEpoEnd) {cout << "bin hier" << endl;
    318318      break;
    319319    }
Note: See TracChangeset for help on using the changeset viewer.