MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / onSocketReadyRead

Method onSocketReadyRead

app/src/API/Server.cpp:240–245  ·  view source on GitHub ↗

* @brief Handles incoming data from a socket (worker thread) */

Source from the content-addressed store, hash-verified

238 * @brief Handles incoming data from a socket (worker thread)
239 */
240void API::ServerWorker::onSocketReadyRead()
241{
242 auto* socket = qobject_cast<QTcpSocket*>(sender());
243 if (socket)
244 Q_EMIT dataReceived(socket, socket->readAll());
245}
246
247/**
248 * @brief Writes data to a specific socket (worker thread)

Callers

nothing calls this directly

Calls 1

senderFunction · 0.85

Tested by

no test coverage detected