Changeset 1583 in ntrip


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

* empty log message *

Location:
trunk/BNC
Files:
2 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}
  • trunk/BNC/bncnetqueryv2.h

    r1405 r1583  
    2727  QNetworkReply*         _reply;
    2828  QEventLoop*            _eventLoop;
     29  bool                   _firstData;
    2930};
    3031
Note: See TracChangeset for help on using the changeset viewer.