Changeset 473 in ntrip for trunk/BNC/bncgetthread.cpp
- Timestamp:
- Jun 18, 2007, 2:22:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r464 r473 256 256 if (_socket->canReadLine()) { 257 257 QString line = _socket->readLine(); 258 259 // Skip messages from proxy server 260 // ------------------------------- 261 if (line.indexOf("ICY 200 OK") == -1 && 262 line.indexOf("200 OK") != -1 ) { 263 bool proxyRespond = true; 264 while (true) { 265 if (_socket->canReadLine()) { 266 line = _socket->readLine(); 267 if (!proxyRespond) { 268 break; 269 } 270 if (line.trimmed().isEmpty()) { 271 proxyRespond = false; 272 } 273 } 274 else { 275 _socket->waitForReadyRead(_timeOut); 276 } 277 } 278 } 279 258 280 if (line.indexOf("Unauthorized") != -1) { 259 281 QStringList table;
Note:
See TracChangeset
for help on using the changeset viewer.