【QT】自定义协议解决TCP粘包和拆包问题

上传者: 41001497 | 上传时间: 2021-09-28 15:39:23 | 文件大小: 3.62MB | 文件类型: ZIP
本demo模拟了TCP通信中发送端和接收端的行为,并利用序列化和反序列化的思想,自定义协议来解决TCP的粘包和拆包问题。

文件下载

资源详情

[{"title":"( 27 个子文件 3.62MB ) 【QT】自定义协议解决TCP粘包和拆包问题","children":[{"title":"dataSplit","children":[{"title":"App","children":[{"title":"dataSplit_d.ilk <span style='color:#111;'> 1.20MB </span>","children":null,"spread":false},{"title":"dataSplit_d.exe <span style='color:#111;'> 161.50KB </span>","children":null,"spread":false},{"title":"dataSplit_d.pdb <span style='color:#111;'> 5.52MB </span>","children":null,"spread":false}],"spread":true},{"title":"build-dataSplit-Desktop_Qt_5_12_3_MSVC2015_64bit-Debug","children":[{"title":"Makefile <span style='color:#111;'> 31.14KB </span>","children":null,"spread":false},{"title":"release","children":null,"spread":false},{"title":"Makefile.Debug <span style='color:#111;'> 212.53KB </span>","children":null,"spread":false},{"title":"debug","children":[{"title":"moc_DataCreator.obj <span style='color:#111;'> 287.31KB </span>","children":null,"spread":false},{"title":"moc_DataCreator.cpp <span style='color:#111;'> 5.09KB </span>","children":null,"spread":false},{"title":"moc_DataRecver.cpp <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"DataCreator.obj <span style='color:#111;'> 349.96KB </span>","children":null,"spread":false},{"title":"DataRecver.obj <span style='color:#111;'> 358.51KB </span>","children":null,"spread":false},{"title":"moc_DataRecver.obj <span style='color:#111;'> 284.24KB </span>","children":null,"spread":false},{"title":"dataSplit_d.vc.pdb <span style='color:#111;'> 6.01MB </span>","children":null,"spread":false},{"title":"moc_predefs.h <span style='color:#111;'> 276B </span>","children":null,"spread":false},{"title":"ProtocolData.obj <span style='color:#111;'> 353.82KB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 280.35KB </span>","children":null,"spread":false}],"spread":true},{"title":"Makefile.Release <span style='color:#111;'> 212.53KB </span>","children":null,"spread":false},{"title":".qmake.stash <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program","children":[{"title":"dataSplit.pri <span style='color:#111;'> 620B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"ProtocolData.cpp <span style='color:#111;'> 3.89KB </span>","children":null,"spread":false},{"title":"DataRecver.cpp <span style='color:#111;'> 5.15KB </span>","children":null,"spread":false},{"title":"DataCreator.cpp <span style='color:#111;'> 3.38KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 366B </span>","children":null,"spread":false}],"spread":true},{"title":"include","children":[{"title":"DataRecver.h <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"DataCreator.h <span style='color:#111;'> 904B </span>","children":null,"spread":false},{"title":"ProtocolData.h <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"dataSplit.pro <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"dataSplit.pro.user <span style='color:#111;'> 24.09KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明