服务端收到的信息是断的,不能一条显示:
红色部分,我的数据不能在一条中显示全,
中间很明显断了,还有乱码
我用网络助手测试了一下,收到的信息断的位置不一样:
虽然好一点,但也是不能一条显示完整,到”<Tr“就结束了,后面的数据在下一条显示
我的客户端代码
#include "sockettest.h"
#include <QtNetwork/QtNetwork>
#include "mainwindow.h"
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include <stdio.h>
using namespace std;
SocketTest::SocketTest(QObject *parent) : QObject(parent)
{
}
void SocketTest::Connect(i