Changeset 9881 in ntrip for trunk/BNC/src
- Timestamp:
- Nov 21, 2022, 2:11:34 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r9880 r9881 299 299 // If there is there more than 1 epoch line in the buffer 300 300 while (_rtnetStreamBuffer.count('*') > 1) { 301 cout << "more than 1 epoch in buffer: " << _rtnetStreamBuffer.count('*') << endl; emit(newMessage(QString("bncRtnetUploadCaster: more than 1 epoch in buffer: %1").arg(_rtnetStreamBuffer.count('*')).toLatin1(), false)); 301 cout << "more than 1 epoch in buffer: " << _rtnetStreamBuffer.count('*') << endl; 302 emit(newMessage(QString("bncRtnetUploadCaster: more than 1 epoch in buffer: %1").arg(_rtnetStreamBuffer.count('*')).toLatin1(), false)); 302 303 QString rtnetStreamBuffer = _rtnetStreamBuffer; 303 304 int nextEpoch = rtnetStreamBuffer.indexOf('*'); 304 305 int nextEpochEnd = rtnetStreamBuffer.indexOf("EOE"); 305 306 _rtnetStreamBuffer = _rtnetStreamBuffer.mid(1); 306 nextEpoch = rtnetStreamBuffer.indexOf('*');307 _rtnetStreamBuffer = _rtnetStreamBuffer.mid(nextEpoch);308 307 if (nextEpoch != -1 && nextEpoch < iEpoEnd) { 309 308 rtnetStreamBuffer = rtnetStreamBuffer.mid(nextEpoch); … … 312 311 decodeRtnetEpoch(lines); 313 312 } 313 nextEpoch = _rtnetStreamBuffer.indexOf('*'); 314 _rtnetStreamBuffer = _rtnetStreamBuffer.mid(nextEpoch); 315 314 316 } 315 317 else if (nextEpoch != -1 && nextEpoch >= iEpoEnd) {
Note:
See TracChangeset
for help on using the changeset viewer.