Changeset 1583 in ntrip
- Timestamp:
- Feb 12, 2009, 2:47:56 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncnetqueryv2.cpp
r1535 r1583 15 15 * -----------------------------------------------------------------------*/ 16 16 17 #include <iostream> 18 17 19 #include "bncnetqueryv2.h" 18 20 #include "bncsettings.h" … … 30 32 _reply = 0; 31 33 _eventLoop = new QEventLoop(this); 32 34 _firstData = true; 33 35 _status = init; 34 36 } … … 171 173 // ----------- 172 174 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 } 173 186 } -
trunk/BNC/bncnetqueryv2.h
r1405 r1583 27 27 QNetworkReply* _reply; 28 28 QEventLoop* _eventLoop; 29 bool _firstData; 29 30 }; 30 31
Note:
See TracChangeset
for help on using the changeset viewer.