Changeset 1354 in ntrip for trunk/BNC/bncsocket.cpp


Ignore:
Timestamp:
Dec 27, 2008, 2:18:56 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncsocket.cpp

    r1353 r1354  
    1919
    2020#include "bncsocket.h"
     21#include "bncapp.h"
    2122
    2223using namespace std;
     
    2728////////////////////////////////////////////////////////////////////////////
    2829bncSocket::bncSocket() {
     30  bncApp* app = (bncApp*) qApp;
     31  app->connect(this, SIGNAL(newMessage(QByteArray,bool)),
     32               app, SLOT(slotMessage(const QByteArray,bool)));
    2933  _socket = 0;
    3034}
     
    158162                         const QByteArray& ntripVersion,
    159163                         int timeOut, QString& msg) {
     164
     165  if      (ntripVersion == "AUTO") {
     166    emit newMessage("NTRIP Version AUTO not yet implemented", "true");
     167    return failure;
     168  }
     169  else if (ntripVersion == "2") {
     170
     171  }
     172  else if (ntripVersion != "1") {
     173    emit newMessage("Unknown NTRIP Version " + ntripVersion, "true");
     174    return failure;
     175  }
    160176
    161177  delete _socket;
Note: See TracChangeset for help on using the changeset viewer.