VC++ mfc socket编程开发聊天与文件传输功能(vs2019)

上传者: silianfa | 上传时间: 2021-05-19 10:06:41 | 文件大小: 262KB | 文件类型: RAR
我想开发一个集群功能,查到用CSocket来实现比较可行,于是先用本程序进行了基本通讯的测试。通过服务端向客户端发送信息,由客户端处理后返回信息。 本程序包括了基本的服务端、客户端功能,实现了服务端与客户端通过CSocket进行双向通讯,不仅能实现信息传输,还能实现大型文件的不丢包传输。 它是压包、拆包的程序示例,也是不丢包传输的解决方案。 此程序还解决了内存泄露的问题。本程序在VS2019下运行通过。

文件下载

资源详情

[{"title":"( 39 个子文件 262KB ) VC++ mfc socket编程开发聊天与文件传输功能(vs2019)","children":[{"title":"SLFSocket","children":[{"title":"client","children":[{"title":"stdafx.cpp <span style='color:#111;'> 139B </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":"client.sln <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"Mysocket.cpp <span style='color:#111;'> 467B </span>","children":null,"spread":false},{"title":"client.aps <span style='color:#111;'> 107.16KB </span>","children":null,"spread":false},{"title":"client.h <span style='color:#111;'> 442B </span>","children":null,"spread":false},{"title":"client.rc <span style='color:#111;'> 11.52KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 234B </span>","children":null,"spread":false},{"title":"client.vcxproj.user <span style='color:#111;'> 228B </span>","children":null,"spread":false},{"title":"Mysocket.h <span style='color:#111;'> 233B </span>","children":null,"spread":false},{"title":"client.cpp <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"clientDlg.h <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false},{"title":"clientDlg.cpp <span style='color:#111;'> 7.45KB </span>","children":null,"spread":false},{"title":"client.vcxproj <span style='color:#111;'> 5.94KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false},{"title":"client.vcxproj.filters <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false}],"spread":false},{"title":"server","children":[{"title":"stdafx.cpp <span style='color:#111;'> 139B </span>","children":null,"spread":false},{"title":"server.vcxproj.user <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"server.vcxproj.filters <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"server.h <span style='color:#111;'> 442B </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.64KB </span>","children":null,"spread":false},{"title":"Mysocket.cpp <span style='color:#111;'> 808B </span>","children":null,"spread":false},{"title":"server.sln <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 234B </span>","children":null,"spread":false},{"title":"serverDlg.cpp <span style='color:#111;'> 7.82KB </span>","children":null,"spread":false},{"title":"Mysocket.h <span style='color:#111;'> 326B </span>","children":null,"spread":false},{"title":"server.aps <span style='color:#111;'> 106.61KB </span>","children":null,"spread":false},{"title":"serverDlg.h <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"server.cpp <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"server.vcxproj <span style='color:#111;'> 5.94KB </span>","children":null,"spread":false},{"title":"server.rc <span style='color:#111;'> 10.91KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false}],"spread":false},{"title":"说明.txt <span style='color:#111;'> 684B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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