摘要: 第一步:.pro工程文件添加 QT += network 第二步:.h文件添加代码 #ifndef TCPCLIENT_H #define TCPCLIENT_H #include <QException> #include <QDebug> #include <QTcpSocket> #inclu 阅读全文
posted @ 2024-05-30 15:22 qiutian-hao 阅读(500) 评论(0) 推荐(0)
摘要: 第一步:.h文件代码 #ifndef SOCKETMAP_H #define SOCKETMAP_H #include <QHash> #include <QDebug> #include <QTcpSocket> #include <QException> class SocketMap: pub 阅读全文
posted @ 2024-05-30 14:17 qiutian-hao 阅读(44) 评论(0) 推荐(0)
摘要: 第一步:.pro工程文件添加 QT += network 第二步:.h文件添加 #ifndef TCPSERVER_H #define TCPSERVER_H #include <QException> #include <QDebug> #include <QTcpServer> #include 阅读全文
posted @ 2024-05-30 08:29 qiutian-hao 阅读(75) 评论(0) 推荐(0)