Changeset 796 in ntrip
- Timestamp:
- Apr 8, 2008, 4:44:02 PM (17 years ago)
- Location:
- trunk/BNS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r795 r796 174 174 // ------------ 175 175 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 } 180 183 } 181 184 else { -
trunk/BNS/bnseph.cpp
r794 r796 61 61 } 62 62 if (_socket->canReadLine()) { 63 cout << "readEph" << endl; 63 64 readEph(); 64 65 } 65 66 else { 66 msleep(10);67 _socket->waitForReadyRead(10); 67 68 } 68 69 } … … 83 84 84 85 QByteArray line = _socket->readLine(); 86 87 cout << line.data(); 85 88 86 89 if (flagGlonass) {
Note:
See TracChangeset
for help on using the changeset viewer.