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

Method onSocketDisconnected

app/src/API/Server.cpp:275–279  ·  view source on GitHub ↗

* @brief Handles socket disconnection (worker thread) */

Source from the content-addressed store, hash-verified

273 * @brief Handles socket disconnection (worker thread)
274 */
275void API::ServerWorker::onSocketDisconnected()
276{
277 auto* socket = qobject_cast<QTcpSocket*>(sender());
278 removeSocket(socket);
279}
280
281/**
282 * @brief Processes frames by serializing them to JSON and writing to sockets

Callers

nothing calls this directly

Calls 5

senderFunction · 0.85
clearSessionMethod · 0.80
containsMethod · 0.45
sizeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected