Changeset 1389 in ntrip for trunk


Ignore:
Timestamp:
Dec 29, 2008, 10:39:13 AM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncnetqueryv2.cpp

    r1388 r1389  
    1515 * -----------------------------------------------------------------------*/
    1616
    17 #include <iostream>
    18 #include <iomanip>
    19 
    2017#include "bncnetqueryv2.h"
    21 #include "bncapp.h"
    22 
    23 using namespace std;
    2418
    2519#define BNCVERSION "1.7"
     
    5145}
    5246
     47// End of Request
     48////////////////////////////////////////////////////////////////////////////
    5349void bncNetQueryV2::slotFinished() {
    5450  if (_status != error) {
     
    5753}
    5854
    59 // Start request, block till the next read (public)
     55// Start request, block till the next read
    6056////////////////////////////////////////////////////////////////////////////
    6157void bncNetQueryV2::startRequest(const QUrl& url, const QByteArray& gga) {
    62   startRequest(url, gga, false);
     58  startRequestPrivate(url, gga, false);
    6359}
    6460
    65 // Start request
     61// Start Request (Private Method)
    6662////////////////////////////////////////////////////////////////////////////
    67 void bncNetQueryV2::startRequest(const QUrl& url, const QByteArray& gga,
    68                                  bool full) {
     63void bncNetQueryV2::startRequestPrivate(const QUrl& url, const QByteArray& gga,
     64                                        bool full) {
    6965
    7066  _status = running;
     
    9187           (urlLoc.userName() + ":" + urlLoc.password()).toAscii().toBase64());
    9288  }
     89  if (!gga.isEmpty()) {
     90    request.setRawHeader("Ntrip-GGA", gga);
     91  }
    9392  request.setRawHeader("Connection"   , "close");
    9493
     
    112111  // Send Request
    113112  // ------------
    114   startRequest(url, "", true);
     113  startRequestPrivate(url, "", true);
    115114
    116115  // Wait Loop
  • trunk/BNC/bncnetqueryv2.h

    r1388 r1389  
    2020
    2121 private:
    22   void startRequest(const QUrl& url, const QByteArray& gga, bool full);
     22  void startRequestPrivate(const QUrl& url, const QByteArray& gga, bool full);
    2323
    2424  QNetworkAccessManager* _manager;
Note: See TracChangeset for help on using the changeset viewer.