Changeset 591 in ntrip
- Timestamp:
- Nov 24, 2007, 9:22:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r590 r591 91 91 _ephStreamGlonass = 0; 92 92 93 _port = 0; 93 94 _server = 0; 94 95 _sockets = 0; … … 246 247 } 247 248 expandEnvVar(_ephPath); 248 }249 250 // Socket Output251 // -------------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*>;258 249 } 259 250 } … … 606 597 } 607 598 599 // Set Port Number 600 //////////////////////////////////////////////////////////////////////////// 601 void 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 608 611 // New Connection 609 612 ////////////////////////////////////////////////////////////////////////////
Note:
See TracChangeset
for help on using the changeset viewer.