Changeset 473 in ntrip for trunk/BNC/bnctabledlg.cpp


Ignore:
Timestamp:
Jun 18, 2007, 2:22:14 PM (17 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnctabledlg.cpp

    r464 r473  
    157157  // Read Caster Response
    158158  // --------------------
     159  bool proxyRespond = false;
    159160  bool first = true;
    160161  while (true) {
    161162    if (socket->canReadLine()) {
    162163      QString line = socket->readLine();
     164
     165      // Skip messages from proxy server
     166      // -------------------------------
     167      if (line.indexOf("SOURCETABLE 200 OK") == -1 &&
     168          line.indexOf("200 OK")             != -1 ) {
     169        proxyRespond = true;
     170      }
     171      if (proxyRespond) {
     172        if (line.trimmed().isEmpty()) {
     173          proxyRespond = false;
     174        }
     175        continue;
     176      }
     177
    163178      allLines.push_back(line);
    164179      if (first) {
Note: See TracChangeset for help on using the changeset viewer.