MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / start

Method start

src/core/TciServer.cpp:310–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310bool TciServer::start(quint16 port)
311{
312 if (m_server)
313 return m_server->isListening();
314
315 m_server = new QWebSocketServer(
316 QStringLiteral("AetherSDR-TCI"),
317 QWebSocketServer::NonSecureMode, this);
318
319 if (!m_server->listen(QHostAddress::Any, port)) {
320 qCWarning(lcCat) << "TciServer: failed to listen on port" << port
321 << m_server->errorString();
322 delete m_server;
323 m_server = nullptr;
324 return false;
325 }
326
327 connect(m_server, &QWebSocketServer::newConnection,
328 this, &TciServer::onNewConnection);
329
330 m_meterTimer->start();
331 qCInfo(lcCat) << "TciServer: listening on port" << m_server->serverPort();
332 return true;
333}
334
335void TciServer::stop()
336{

Callers 3

TciServerMethod · 0.45
startTxChronoMethod · 0.45
scheduleDaxReleaseMethod · 0.45

Calls 1

isListeningMethod · 0.45

Tested by

no test coverage detected