kopia lustrzana https://gitlab.com/eliggett/wfview
Show server connection status in taskbar (only for USB connected rigs)
rodzic
8bc43c9f83
commit
999dedac1a
|
@ -191,7 +191,7 @@ void udpHandler::dataReceived()
|
||||||
else {
|
else {
|
||||||
tempLatency = QString("<span style = \"color:red\">%1 ms</span>").arg(audio->audioLatency,3);
|
tempLatency = QString("<span style = \"color:red\">%1 ms</span>").arg(audio->audioLatency,3);
|
||||||
}
|
}
|
||||||
emit haveNetworkStatus(QString("<pre>rx latency: %1 ms / rtt: %2 ms / loss: %3/%4</pre>").arg(tempLatency).arg(latency, 3).arg(totallost,3).arg(totalsent,3));
|
emit haveNetworkStatus(QString("<pre>rx latency: %1 ms / rtt: %2 ms / loss: %3/%4</pre>").arg(tempLatency).arg(latency, 3).arg(totallost, 3).arg(totalsent, 3));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -423,6 +423,9 @@ void udpServer::controlReceived()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Report current connections:
|
||||||
|
emit haveNetworkStatus(QString("<pre>%1 current server connections</pre>").arg(controlClients.size()));
|
||||||
|
|
||||||
commonReceived(&controlClients, current, r);
|
commonReceived(&controlClients, current, r);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,6 +51,7 @@ public slots:
|
||||||
signals:
|
signals:
|
||||||
void haveDataFromServer(QByteArray);
|
void haveDataFromServer(QByteArray);
|
||||||
void haveAudioData(audioPacket data);
|
void haveAudioData(audioPacket data);
|
||||||
|
void haveNetworkStatus(QString);
|
||||||
|
|
||||||
void setupTxAudio(audioSetup);
|
void setupTxAudio(audioSetup);
|
||||||
void setupRxAudio(audioSetup);
|
void setupRxAudio(audioSetup);
|
||||||
|
|
|
@ -753,7 +753,9 @@ void wfmain::setServerToPrefs()
|
||||||
|
|
||||||
connect(this, SIGNAL(initServer()), udp, SLOT(init()));
|
connect(this, SIGNAL(initServer()), udp, SLOT(init()));
|
||||||
connect(serverThread, SIGNAL(finished()), udp, SLOT(deleteLater()));
|
connect(serverThread, SIGNAL(finished()), udp, SLOT(deleteLater()));
|
||||||
|
if (!prefs.enableLAN) {
|
||||||
|
connect(udp, SIGNAL(haveNetworkStatus(QString)), this, SLOT(handleStatusUpdate(QString)));
|
||||||
|
}
|
||||||
|
|
||||||
serverThread->start();
|
serverThread->start();
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue