Changeset 796 in ntrip


Ignore:
Timestamp:
Apr 8, 2008, 4:44:02 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r795 r796  
    174174  // ------------
    175175  while (true) {
    176     if (_clkSocket &&
    177         _clkSocket->state() == QAbstractSocket::ConnectedState &&
    178         _clkSocket->canReadLine()) {
    179       readEpoch();
     176    if (_clkSocket && _clkSocket->state() == QAbstractSocket::ConnectedState) {
     177      if ( _clkSocket->canReadLine()) {
     178        readEpoch();
     179      }
     180      else {
     181        _clkSocket->waitForReadyRead(10);
     182      }
    180183    }
    181184    else {
  • trunk/BNS/bnseph.cpp

    r794 r796  
    6161      }
    6262      if (_socket->canReadLine()) {
     63        cout << "readEph" << endl;
    6364        readEph();
    6465      }
    6566      else {
    66         msleep(10);
     67        _socket->waitForReadyRead(10);
    6768      }
    6869    }
     
    8384
    8485    QByteArray line = _socket->readLine();
     86
     87    cout << line.data();
    8588
    8689    if (flagGlonass) {
Note: See TracChangeset for help on using the changeset viewer.