data.mid(App::CmdStart1, App::CmdLen1);
QString id = QString(cmd);
if (id.startsWith("S") && deviceID...= id) {
deviceID = id;
//发送信号更新标识符
emit receiveDeviceID(ip, port, deviceID);...);
emit sendData(ip, port, deviceID, "客户端上线");
//追加到链表中
clients.append(client);
}
void...= client->getDeviceID();
emit clientDisconnected(ip, port, deviceID);
emit sendData(ip, port..., deviceID, "客户端下线");
//断开连接后从链表中移除
clients.removeOne(client);
}
bool TcpServer1::start()
{