Changeset 3227 in ntrip
- Timestamp:
- Mar 31, 2011, 6:15:46 PM (14 years ago)
- Location:
- trunk/BNC/upload
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/upload/bncrtnetuploadcaster.cpp
r3226 r3227 337 337 } 338 338 } 339 339 340 QByteArray hlpBufferCo; 340 341 if (co.NumberOfGPSSat > 0 || co.NumberOfGLONASSSat > 0) { 341 342 char obuffer[CLOCKORBIT_BUFFERSIZE]; … … 343 344 int len = MakeClockOrbit(&co, COTYPE_AUTO, 0, obuffer, sizeof(obuffer)); 344 345 if (len > 0) { 345 _outBuffer.append(QByteArray(obuffer, len)); 346 } 347 } 348 346 hlpBufferCo = QByteArray(obuffer, len); 347 } 348 } 349 350 QByteArray hlpBufferBias; 349 351 if (bias.NumberOfGPSSat > 0 || bias.NumberOfGLONASSSat > 0) { 350 352 char obuffer[CLOCKORBIT_BUFFERSIZE]; 351 353 int len = MakeBias(&bias, BTYPE_AUTO, 0, obuffer, sizeof(obuffer)); 352 354 if (len > 0) { 353 _outBuffer.append(QByteArray(obuffer, len)); 354 } 355 hlpBufferBias = QByteArray(obuffer, len); 356 } 357 } 358 359 if (hlpBufferCo.size() > 0) { 360 _outBuffer = hlpBufferCo + hlpBufferBias; 355 361 } 356 362 } -
trunk/BNC/upload/bncuploadcaster.cpp
r3226 r3227 71 71 _outSocket->write(_outBuffer); 72 72 _outSocket->flush(); 73 _outBuffer.clear();74 }75 else {76 QMutexLocker locker(&_mutex);77 _outBuffer.clear();78 73 } 79 74 sleep(5);
Note:
See TracChangeset
for help on using the changeset viewer.