Changeset 1058 in ntrip for trunk/BNS/bns.cpp


Ignore:
Timestamp:
Aug 27, 2008, 10:21:47 AM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r1056 r1058  
    5757  _bnseph = new t_bnseph(parent);
    5858
    59   connect(_bnseph, SIGNAL(newEph(t_eph*)), this, SLOT(slotNewEph(t_eph*)));
     59  connect(_bnseph, SIGNAL(newEph(t_eph*)),
     60          this, SLOT(slotNewEph(t_eph*, int)));
    6061  connect(_bnseph, SIGNAL(newMessage(QByteArray)),
    6162          this, SLOT(slotMessage(const QByteArray)));
     
    265266//
    266267////////////////////////////////////////////////////////////////////////////
    267 void t_bns::slotNewEph(t_eph* ep) {
     268void t_bns::slotNewEph(t_eph* ep, int nBytes) {
    268269
    269270  QMutexLocker locker(&_mutex);
     271
     272  emit(newEphBytes(nBytes));
    270273
    271274  t_ephPair* pair;
     
    334337
    335338  QByteArray line = _clkSocket->readLine();
     339
     340  emit(newClkBytes(line.length()));
    336341
    337342  if (line.indexOf('*') == -1) {
     
    417422        int len = MakeClockOrbit(&co, COTYPE_AUTO, 0, obuffer, sizeof(obuffer));
    418423        if (len > 0) {
     424          emit(newOutBytes(len));
    419425          if (_outSocket) {
    420426            _outSocket->write(obuffer, len);
Note: See TracChangeset for help on using the changeset viewer.