MFC 用SOCKET实现图片分包传送和接收并作校验,并显示图片C++

上传者: xtfvje | 上传时间: 2019-12-21 22:05:33 | 文件大小: 281KB | 文件类型: zip
基于对话框的应用程序,可以实现从客户端向服务器发送图片,在客户端先对图片进行打包处理,进行分包发送(包中附带校验信息,以便于在服务器端能根据此验证信息来接收数据包,还附带有包的次序,以便在服务器端按此次序来写文件,会使用Seek来对文件进行定位写入),服务器端若接收成功,则显示接收到的图片,并写入磁盘文件中。

文件下载

资源详情

[{"title":"( 40 个子文件 281KB ) MFC 用SOCKET实现图片分包传送和接收并作校验,并显示图片C++","children":[{"title":"SendPicture","children":[{"title":"Client","children":[{"title":"stdafx.cpp <span style='color:#111;'> 139B </span>","children":null,"spread":false},{"title":"message.h <span style='color:#111;'> 632B </span>","children":null,"spread":false},{"title":"Client.aps <span style='color:#111;'> 106.79KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Client.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false},{"title":"Client.rc2 <span style='color:#111;'> 668B </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.h <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"ClientDlg.h <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"Client.vcxproj <span style='color:#111;'> 6.11KB </span>","children":null,"spread":false},{"title":"Client.h <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"ClientSocket.h <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"Client.cpp <span style='color:#111;'> 2.41KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 234B </span>","children":null,"spread":false},{"title":"Client.rc <span style='color:#111;'> 11.85KB </span>","children":null,"spread":false},{"title":"Client.vcxproj.filters <span style='color:#111;'> 2.27KB </span>","children":null,"spread":false},{"title":"ClientDlg.cpp <span style='color:#111;'> 12.37KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.84KB </span>","children":null,"spread":false},{"title":"ClientSocket.cpp <span style='color:#111;'> 376B </span>","children":null,"spread":false}],"spread":false},{"title":"SendPicture.sln <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"Server","children":[{"title":"ServerSocket.h <span style='color:#111;'> 276B </span>","children":null,"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 139B </span>","children":null,"spread":false},{"title":"Server.cpp <span style='color:#111;'> 2.41KB </span>","children":null,"spread":false},{"title":"message.h <span style='color:#111;'> 632B </span>","children":null,"spread":false},{"title":"Server.vcxproj <span style='color:#111;'> 6.20KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Server.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false},{"title":"Server.rc2 <span style='color:#111;'> 668B </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.h <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"Server.h <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"ServerDlg.h <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"Server.aps <span style='color:#111;'> 106.66KB </span>","children":null,"spread":false},{"title":"ClientSocket.h <span style='color:#111;'> 268B </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 234B </span>","children":null,"spread":false},{"title":"Server.vcxproj.filters <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false},{"title":"ServerDlg.cpp <span style='color:#111;'> 8.84KB </span>","children":null,"spread":false},{"title":"Server.rc <span style='color:#111;'> 11.59KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false},{"title":"ServerSocket.cpp <span style='color:#111;'> 429B </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.84KB </span>","children":null,"spread":false},{"title":"ClientSocket.cpp <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false}],"spread":false},{"title":"SendPicture.v12.suo <span style='color:#111;'> 37.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • F-D :
    很好,我跑起来了
    2019-10-31
  • d02540329 :
    学习学习中
    2018-11-19
  • 我是zw :
    还需要研究研究
    2018-10-21
  • 邯飞 :
    有些功能没写完,服务器连接不上。
    2018-08-20
  • 诗 :
    看着挺好,学习了
    2018-07-30

免责申明

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