Changeset 8579 in ntrip for branches/BNC_2.12
- Timestamp:
- Jan 10, 2019, 11:00:03 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp
r8570 r8579 223 223 return; 224 224 } 225 int iEpoBegEarlier = _rtnetStreamBuffer.indexOf('*'); 226 if (iEpoBegEarlier != -1 && iEpoBegEarlier < iEpoBeg) { // are there twoepoch lines in buffer?225 int iEpoBegEarlier = _rtnetStreamBuffer.indexOf('*'); // begin of first epoch 226 if (iEpoBegEarlier != -1 && iEpoBegEarlier < iEpoBeg) { // are there more epoch lines in buffer? 227 227 _rtnetStreamBuffer = _rtnetStreamBuffer.mid(iEpoBegEarlier); 228 228 } … … 231 231 } 232 232 233 int iEpoEnd = _rtnetStreamBuffer. lastIndexOf("EOE"); // end of last epoch233 int iEpoEnd = _rtnetStreamBuffer.indexOf("EOE"); // end of first epoch 234 234 if (iEpoEnd == -1) { 235 235 return; 236 236 } 237 237 else { 238 lines = _rtnetStreamBuffer.left(iEpoEnd).split('\n', 239 QString::SkipEmptyParts); 238 lines = _rtnetStreamBuffer.left(iEpoEnd).split('\n', QString::SkipEmptyParts); 240 239 _rtnetStreamBuffer = _rtnetStreamBuffer.mid(iEpoEnd + 3); 241 240 }
Note:
See TracChangeset
for help on using the changeset viewer.