debug recall

This commit is contained in:
lnk
2025-03-07 18:27:03 +08:00
parent 8a5087f1b7
commit 2e50baee04
4 changed files with 96 additions and 23 deletions

View File

@@ -52,7 +52,6 @@ extern int G_TEST_NUM;
extern void ledger(const char* terminal_id = NULL,QIODevice* outputDevice = NULL);
extern void value_print(const char *variableName, QTcpSocket *clientSocket);
extern int TEST_PORT;
extern void telnetetst(QTcpSocket* clientSocket);
extern void redirectErrorOutput(bool enable);
extern void redirectWarnOutput(bool enable);
@@ -154,8 +153,8 @@ public:
TEST_NUM(G_TEST_NUM),
timer(NULL),
historyIndex(-1),
stopViewLog(false),
g_stopTelnetTest(false),
stopViewLog(true),
g_stopTelnetTest(true),
activeClient(NULL)
{
}
@@ -166,6 +165,8 @@ public:
}
void handleViewLogCommand(const QString& command, QTcpSocket* clientSocket);
int init_ping_telnet(QTcpSocket* clientSocket, int& ip_count, int& telnet_count);
void telnetetst(QTcpSocket* clientSocket);
public slots:
@@ -479,6 +480,7 @@ private:
}
}
else if (cmd.startsWith("telnettest")) {
g_stopTelnetTest = false;
telnetetst(clientSocket);
clientSocket->write("\r\x1B[K");
clientSocket->write("Executed telnettest warning!!! it woont stop until finish!!!\r\n");