Changeset 5905 in ntrip


Ignore:
Timestamp:
Aug 9, 2014, 11:45:37 AM (8 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnccore.cpp

    r5903 r5905  
    872872//
    873873////////////////////////////////////////////////////////////////////////////
    874 void t_bncCore::startPPP() {
    875   _pppMain->start();
     874void t_bncCore::startPPP(bool ownThread) {
     875  _pppMain->start(ownThread);
    876876}
    877877
  • trunk/BNC/src/bnccore.h

    r5903 r5905  
    7171  void setMainWindow(QWidget* mainWindow){_mainWindow = mainWindow;}
    7272  bool GUIenabled() const {return _GUIenabled;}
    73   void startPPP();
     73  void startPPP(bool ownThread);
    7474  void stopPPP();
    7575
  • trunk/BNC/src/bncmain.cpp

    r5900 r5905  
    189189    BNC_CORE->slotMessage("========== Start BNC v" BNCVERSION " =========", true);
    190190
    191     // PPP Client(s) (in separate threads)
    192     // -----------------------------------   
    193     BNC_CORE->startPPP();
    194 
    195191    // Normal case - data from Internet
    196192    // --------------------------------
    197193    if ( rawFileName.isEmpty() ) {
    198194      BNC_CORE->setMode(t_bncCore::nonInteractive);
     195      BNC_CORE->startPPP(true);
     196
    199197      caster->readMountPoints();
    200198      if (caster->numStations() == 0) {
     
    207205    else {
    208206      BNC_CORE->setMode(t_bncCore::batchPostProcessing);
    209       bncRawFile*   rawFile   = new bncRawFile(rawFileName, "",
    210                                                bncRawFile::input);
     207      BNC_CORE->startPPP(false);
     208
     209      bncRawFile*   rawFile   = new bncRawFile(rawFileName, "", bncRawFile::input);
    211210      bncGetThread* getThread = new bncGetThread(rawFile);
    212211      caster->addGetThread(getThread, true);
  • trunk/BNC/src/bncwindow.cpp

    r5902 r5905  
    16501650    startRealTime();
    16511651  }
    1652   BNC_CORE->startPPP();
     1652  BNC_CORE->startPPP(true);
    16531653}
    16541654
Note: See TracChangeset for help on using the changeset viewer.