Changeset 1228 in ntrip for trunk/BNC/bnccaster.cpp
- Timestamp:
- Nov 22, 2008, 3:35:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r1225 r1228 54 54 QSettings settings; 55 55 56 connect(this, SIGNAL(newMessage(QByteArray)), 57 (bncApp*) qApp, SLOT(slotMessage(const QByteArray))); 58 56 59 if ( !outFileName.isEmpty() ) { 57 60 QString lName = outFileName; … … 76 79 if (_port != 0) { 77 80 _server = new QTcpServer; 78 _server->listen(QHostAddress::Any, _port); 81 if ( !_server->listen(QHostAddress::Any, _port) ) { 82 emit newMessage("bncCaster: cannot listen on sync port"); 83 } 79 84 connect(_server, SIGNAL(newConnection()), this, SLOT(slotNewConnection())); 80 85 _sockets = new QList<QTcpSocket*>; … … 88 93 if (uPort != 0) { 89 94 _uServer = new QTcpServer; 90 _uServer->listen(QHostAddress::Any, uPort); 95 if ( !_uServer->listen(QHostAddress::Any, uPort) ) { 96 emit newMessage("bncCaster: cannot listen on usync port"); 97 } 91 98 connect(_uServer, SIGNAL(newConnection()), this, SLOT(slotNewUConnection())); 92 99 _uSockets = new QList<QTcpSocket*>; … … 102 109 103 110 _confTimer = 0; 104 105 connect(this, SIGNAL(newMessage(QByteArray)),106 (bncApp*) qApp, SLOT(slotMessage(const QByteArray)));107 111 } 108 112
Note:
See TracChangeset
for help on using the changeset viewer.