详细演示如何优雅处理TCP粘包C++源代码 包含完整项目资源确保可顺利编译运行

上传者: goldore | 上传时间: 2021-06-03 08:36:10 | 文件大小: 49KB | 文件类型: RAR
主要是一步一步演示了C++实现网络编程的完整步骤(含服务器客户端源代码)。本程序使用设计良好的函数,使得应用层不需要考虑网络消息是如何被接受和发送的,重点演示了如何优雅地处理TCP/IP网络数据粘包和丢包的刺手问题,你只要调用相应的函数就可以了。你只需要定义自己的协议头和消息结构体,定义好网络消息的回调函数就可以了。 详情请看程序源代码!

文件下载

资源详情

[{"title":"( 36 个子文件 49KB ) 详细演示如何优雅处理TCP粘包C++源代码 包含完整项目资源确保可顺利编译运行","children":[{"title":"MessagerFairy","children":[{"title":"workspace.dsw <span style='color:#111;'> 736B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"Transport.lib <span style='color:#111;'> 53.55KB </span>","children":null,"spread":false}],"spread":true},{"title":"Common","children":[{"title":"protocolhdr.h <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"msgId_def.h <span style='color:#111;'> 785B </span>","children":null,"spread":false},{"title":"struct_def.h <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false}],"spread":true},{"title":"Client","children":[{"title":"Client.dsp <span style='color:#111;'> 4.53KB </span>","children":null,"spread":false},{"title":"RichEditCtrlEx.h <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"ClientDlg.h <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"Client.rc <span style='color:#111;'> 5.20KB </span>","children":null,"spread":false},{"title":"ClientTunnel.h <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"RichEditCtrlEx.cpp <span style='color:#111;'> 8.16KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Client.rc2 <span style='color:#111;'> 398B </span>","children":null,"spread":false},{"title":"Client.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"Client.cpp <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"Client.dsw <span style='color:#111;'> 535B </span>","children":null,"spread":false},{"title":"Resource.h <span style='color:#111;'> 913B </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"ClientDlg.cpp <span style='color:#111;'> 17.57KB </span>","children":null,"spread":false},{"title":"Client.h <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"ClientTunnel.cpp <span style='color:#111;'> 5.16KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":false},{"title":"Server","children":[{"title":"mainCtrl.cpp <span style='color:#111;'> 9.93KB </span>","children":null,"spread":false},{"title":"Server.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"ServerTunnel.cpp <span style='color:#111;'> 5.35KB </span>","children":null,"spread":false},{"title":"Server.ncb <span style='color:#111;'> 41.00KB </span>","children":null,"spread":false},{"title":"Server.dsw <span style='color:#111;'> 535B </span>","children":null,"spread":false},{"title":"Server.dsp <span style='color:#111;'> 3.98KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"ServerTunnel.h <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"mainCtrl.h <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false}],"spread":true},{"title":"include","children":[{"title":"transport.h <span style='color:#111;'> 3.93KB </span>","children":null,"spread":false},{"title":"TableInfoMgr.h <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"ListEx.h <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"netMain.h <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"mutexlock.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • hats8888 :
    垃圾,VC6的工程,没源码
    2021-07-13
  • openopen123 :
    不错,很好的资源
    2019-08-27
  • yangguo_10 :
    很不错,挺全的
    2019-04-12
  • cyh_canon :
    下载试试看
    2019-01-10

免责申明

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