Changeset 4808 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Jan 1, 2013, 11:08:58 AM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/upload
Files:
2 edited

Legend:

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

    r4803 r4808  
    243243  in >> hlp >> year >> month >> day >> hour >> min >> sec;
    244244  bncTime epoTime; epoTime.set( year, month, day, hour, min, sec);
     245
     246  emit(newMessage("decodeRtnetStream: " + lines[0].toAscii(), false));
    245247
    246248  struct ClockOrbit co;
     
    477479  }
    478480
    479   if (hlpBufferCo.size() > 0) {
    480     _outBuffer = hlpBufferCo + hlpBufferBias;
    481   }
     481  _outBuffer += hlpBufferCo + hlpBufferBias;
    482482}
    483483
  • trunk/BNC/src/upload/bncuploadcaster.cpp

    r3273 r4808  
    8585    if (_outSocket && _outSocket->state() == QAbstractSocket::ConnectedState) {
    8686      QMutexLocker locker(&_mutex);
    87       _outSocket->write(_outBuffer);
    88       _outSocket->flush();
    89       emit newBytes(_mountpoint.toAscii(), _outBuffer.size());
     87      if (_outBuffer.size() > 0) {
     88        _outSocket->write(_outBuffer);
     89        _outSocket->flush();
     90        emit newBytes(_mountpoint.toAscii(), _outBuffer.size());
     91        _outBuffer.clear();
     92      }
    9093    }
    9194    sleep(_rate);
Note: See TracChangeset for help on using the changeset viewer.