Changeset 1583 in ntrip for trunk/BNC/bncnetqueryv2.cpp


Ignore:
Timestamp:
Feb 12, 2009, 2:47:56 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncnetqueryv2.cpp

    r1535 r1583  
    1515 * -----------------------------------------------------------------------*/
    1616
     17#include <iostream>
     18
    1719#include "bncnetqueryv2.h"
    1820#include "bncsettings.h"
     
    3032  _reply     = 0;
    3133  _eventLoop = new QEventLoop(this);
    32 
     34  _firstData = true;
    3335  _status    = init;
    3436}
     
    171173  // -----------
    172174  outData.append(_reply->readAll());
     175
     176  if (_firstData) {
     177    _firstData = false;
     178    if (outData.indexOf("SOURCETABLE") != -1) {
     179      _reply->disconnect(SIGNAL(error(QNetworkReply::NetworkError)));
     180      _reply->abort();
     181      _eventLoop->quit();
     182      _status = error;
     183      emit newMessage("NetQuery: wrong Mountpoint and/or Authorization", true);
     184    }
     185  }
    173186}
Note: See TracChangeset for help on using the changeset viewer.