QT5 的TCP和UDP 网络通信 <QTcpSocket>
QT5 的TCP和UDP 网络通信 <QTcpSocket>
首先需要 在项目中引入网络模块,pro文件中添加
QT += core gui network
#include <QTcpServer> #include <QTcpSocket>
欢迎讨论,相互学习。
cdtxw@foxmail.com
QT += core gui network
#include <QTcpServer> #include <QTcpSocket>