Changeset 929 in ntrip for trunk/BNS/bnseph.cpp


Ignore:
Timestamp:
May 25, 2008, 5:37:13 PM (16 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnseph.cpp

    r926 r929  
    6767    }
    6868    if (_socket && _socket->state() == QAbstractSocket::ConnectedState) {
    69       if (_socket->canReadLine()) {
    70         readEph();
    71       }
    72       else {
    73         _socket->waitForReadyRead(10);
    74       }
     69      readEph();
    7570    }
    7671    else {
     
    8479void t_bnseph::readEph() {
    8580
    86 
    8781  t_eph* eph = 0;
    88 
    89   QByteArray  line = _socket->readLine();
     82  QByteArray line = waitForLine(_socket);
     83
    9084  QTextStream in(line);
    9185  QString     prn;
     
    107101
    108102  for (int ii = 2; ii <= numlines; ii++) {
    109     QByteArray line = _socket->readLine();
     103    QByteArray line = waitForLine(_socket);
    110104    lines << line;
    111105  }
     
    131125////////////////////////////////////////////////////////////////////////////
    132126void t_ephGPS::read(const QStringList& lines) {
     127
     128  for (int ii = 1; ii <= lines.size(); ii++) {
     129    cout << lines.at(ii-1).toAscii().data();
     130  }
    133131
    134132  for (int ii = 1; ii <= lines.size(); ii++) {
     
    267265
    268266  for (int ii = 1; ii <= lines.size(); ii++) {
     267    cout << lines.at(ii-1).toAscii().data();
     268  }
     269
     270  for (int ii = 1; ii <= lines.size(); ii++) {
    269271    QTextStream in(lines.at(ii-1).toAscii());
    270272
Note: See TracChangeset for help on using the changeset viewer.