Changeset 787 in ntrip for trunk/BNS/bns.cpp


Ignore:
Timestamp:
Apr 8, 2008, 2:45:41 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r786 r787  
    2727  this->setTerminationEnabled(true);
    2828 
     29  // Thread that handles broadcast ephemeris
     30  // ---------------------------------------
    2931  _bnseph = new t_bnseph(parent);
    3032
    3133  connect(_bnseph, SIGNAL(newEph(gpsEph*)), this, SLOT(slotNewEph(gpsEph*)));
    32 
    3334  connect(_bnseph, SIGNAL(newMessage(QByteArray)),
    3435          this, SLOT(slotMessage(const QByteArray)));
    35 
    3636  connect(_bnseph, SIGNAL(error(QByteArray)),
    3737          this, SLOT(slotError(const QByteArray)));
    3838
    39   // Start listening for rtnet results
    40   // ---------------------------------
     39  // Server listening for rtnet results
     40  // ----------------------------------
    4141  QSettings settings;
    4242  _clkSocket = 0;
    4343  _clkServer = new QTcpServer;
    44   /////  _clkServer->listen(QHostAddress::Any, settings.value("clkPort").toInt());
    45   _clkServer->listen(QHostAddress::Any, 5555);
     44  _clkServer->listen(QHostAddress::Any, settings.value("clkPort").toInt());
    4645  connect(_clkServer, SIGNAL(newConnection()),this, SLOT(slotNewConnection()));
    4746
     47  // Socket for outputting the results
     48  // ---------------------------------
    4849  _outSocket = 0;
    4950}
     
    5455  deleteBnsEph();
    5556  delete _clkServer;
     57  delete _clkSocket;
    5658  delete _outSocket;
    5759  QMapIterator<QString, t_ephPair*> it(_ephList);
     
    9294void t_bns::slotNewConnection() {
    9395  slotMessage("t_bns::slotNewConnection");
     96  delete _clkSocket;
    9497  _clkSocket = _clkServer->nextPendingConnection();
    9598}
Note: See TracChangeset for help on using the changeset viewer.