Changeset 9871 in ntrip for trunk/BNC/src/upload
- Timestamp:
- Nov 10, 2022, 9:33:46 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r9869 r9871 275 275 if (iEpoBeg == -1) { 276 276 _rtnetStreamBuffer.clear(); 277 emit(newMessage( "bncRtnetUploadCaster: no Epoch line found " + _casterID.toLatin1(), false));277 emit(newMessage(QString("bncRtnetUploadCaster: no Epoch line found: %1").arg(_casterID).toLatin1(), false)); 278 278 return; 279 279 } … … 292 292 if (iEpoEnd == -1) { 293 293 _rtnetStreamBuffer.clear(); 294 emit(newMessage( "bncRtnetUploadCaster: no EOE found " + _casterID.toLatin1(), false));294 emit(newMessage(QString("bncRtnetUploadCaster: no EOE found: %1").arg(_casterID).toLatin1(), false)); 295 295 return; 296 296 } … … 298 298 // If there is there more than 1 epoch line in the buffer 299 299 while (_rtnetStreamBuffer.count('*') > 1) { 300 emit(newMessage("bncRtnetUploadCaster: more than 1 epoch in buffer: " + _rtnetStreamBuffer.count('*') , false)); 300 cout << "more than 1 epoch in buffer: " << _rtnetStreamBuffer.count('*') << endl; 301 emit(newMessage(QString("bncRtnetUploadCaster: more than 1 epoch in buffer: %1").arg(_rtnetStreamBuffer.count('*')).toLatin1(), false)); 301 302 QString rtnetStreamBuffer = _rtnetStreamBuffer.mid(1); 302 303 int nextEpoch = rtnetStreamBuffer.indexOf('*'); … … 306 307 if (nextEpoch != -1 && nextEpoch < iEpoEnd) { 307 308 _rtnetStreamBuffer = _rtnetStreamBuffer.mid(nextEpoch); 308 cout << _rtnetStreamBuffer.toStdString().c_str() << endl; 309 cout << "next Epoch:\n" << _rtnetStreamBuffer.toStdString().c_str() << endl; 310 309 311 } 310 312 else if (nextEpoch != -1 && nextEpoch >= iEpoEnd) { … … 312 314 } 313 315 else { 314 cout << _rtnetStreamBuffer.toStdString().c_str() << endl; 315 } 316 cout << "_rtnetStreamBuffer: \n" << _rtnetStreamBuffer.toStdString().c_str() << endl; 317 } 318 cout << "=============" << endl; 316 319 } 317 320 … … 321 324 322 325 if (lines.size() < 2) { 323 emit(newMessage( 324 "bncRtnetUploadCaster: less than 2 lines to decode " + _casterID.toLatin1(), false)); 326 emit(newMessage(QString("bncRtnetUploadCaster: less than 2 lines to decode : %1").arg(_casterID).toLatin1(), false)); 325 327 return; 326 328 }
Note:
See TracChangeset
for help on using the changeset viewer.