Changeset 8917 in ntrip
- Timestamp:
- Apr 14, 2020, 8:43:50 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccaster.cpp
r8916 r8917 71 71 if (port != 0) { 72 72 _server = new QTcpServer; 73 if ( !_server->listen(QHostAddress::LocalHost, port) ) { 74 emit newMessage("bncCaster: Cannot listen on sync port", true); 73 if ( !_server->listen(QHostAddress::Any, port) ) { 74 QString message = "bncCaster: Cannot listen on sync port" + _server->errorString(); 75 emit newMessage(message.toLatin1(), true); 75 76 } 76 77 connect(_server, SIGNAL(newConnection()), this, SLOT(slotNewConnection())); … … 86 87 _uServer = new QTcpServer; 87 88 if ( !_uServer->listen(QHostAddress::Any, uPort) ) { 88 emit newMessage("bncCaster: Cannot listen on usync port", true); 89 QString message = "bncCaster: Cannot listen on usync port" + _server->errorString(); 90 emit newMessage(message.toLatin1(), true); 89 91 } 90 92 connect(_uServer, SIGNAL(newConnection()), this, SLOT(slotNewUConnection()));
Note:
See TracChangeset
for help on using the changeset viewer.