Changeset 828 in ntrip


Ignore:
Timestamp:
Apr 15, 2008, 10:10:26 AM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r827 r828  
    2828
    2929  this->setTerminationEnabled(true);
    30 
    31   _bnseph    = 0;
    32   _outSocket = 0;
    33   _clkSocket = 0;
     30 
     31  // Thread that handles broadcast ephemeris
     32  // ---------------------------------------
     33  _bnseph = new t_bnseph(parent);
     34
     35  connect(_bnseph, SIGNAL(newEph(gpsEph*)), this, SLOT(slotNewEph(gpsEph*)));
     36  connect(_bnseph, SIGNAL(newMessage(QByteArray)),
     37          this, SLOT(slotMessage(const QByteArray)));
     38  connect(_bnseph, SIGNAL(error(QByteArray)),
     39          this, SLOT(slotError(const QByteArray)));
    3440
    3541  // Server listening for rtnet results
    3642  // ----------------------------------
    3743  QSettings settings;
     44  _clkSocket = 0;
    3845  _clkServer = new QTcpServer;
    3946  _clkServer->listen(QHostAddress::Any, settings.value("clkPort").toInt());
    40 
    41   connect(_clkServer, SIGNAL(newConnection()),
    42           this, SLOT(slotNewConnection()), Qt::DirectConnection);
     47  connect(_clkServer, SIGNAL(newConnection()),this, SLOT(slotNewConnection()));
     48
     49  // Socket and file for outputting the results
     50  // -------------------------------------------
     51  _outSocket = 0;
    4352
    4453  QString outFileName = settings.value("outFile").toString();
     
    158167    delete _outSocket;
    159168    _outSocket = 0;
    160     emit(slotMessage("bns::openCaster socket deleted"));
    161   }
    162   else {
    163     emit(slotMessage("bns::openCaster socket OK"));
    164169  }
    165170}
     
    202207  slotMessage("============ Start BNS ============");
    203208
    204   // Thread that handles broadcast ephemeris
    205   // ---------------------------------------
    206   _bnseph = new t_bnseph(parent());
     209  // Start Thread that retrieves broadcast Ephemeris
     210  // -----------------------------------------------
    207211  _bnseph->start();
    208 
    209   connect(_bnseph, SIGNAL(newEph(gpsEph*)), this, SLOT(slotNewEph(gpsEph*)));
    210 
    211   connect(_bnseph, SIGNAL(newMessage(QByteArray)),
    212           this, SLOT(slotMessage(const QByteArray)));
    213 
    214   connect(_bnseph, SIGNAL(error(QByteArray)),
    215           this, SLOT(slotError(const QByteArray)));
    216212
    217213  // Endless loop
Note: See TracChangeset for help on using the changeset viewer.