Changeset 591 in ntrip


Ignore:
Timestamp:
Nov 24, 2007, 9:22:00 PM (17 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r590 r591  
    9191  _ephStreamGlonass = 0;
    9292
     93  _port    = 0;
    9394  _server  = 0;
    9495  _sockets = 0;
     
    246247      }
    247248      expandEnvVar(_ephPath);
    248     }
    249 
    250     // Socket Output
    251     // -------------
    252     _port = settings.value("outEphPort").toInt();
    253     if (_port != 0) {
    254       _server = new QTcpServer;
    255       _server->listen(QHostAddress::Any, _port);
    256       connect(_server, SIGNAL(newConnection()), this, SLOT(slotNewConnection()));
    257       _sockets = new QList<QTcpSocket*>;
    258249    }
    259250  }
     
    606597}
    607598
     599// Set Port Number
     600////////////////////////////////////////////////////////////////////////////
     601void bncApp::setPort(int port) {
     602  _port = port;
     603  if (_port != 0) {
     604    _server = new QTcpServer;
     605    _server->listen(QHostAddress::Any, _port);
     606    connect(_server, SIGNAL(newConnection()), this, SLOT(slotNewConnection()));
     607    _sockets = new QList<QTcpSocket*>;
     608  }
     609}
     610
    608611// New Connection
    609612////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.