CAsyncSocket异步实现服务器与客户端

上传者: johnasongong | 上传时间: 2024-01-10 21:36:32 | 文件大小: 152KB | 文件类型: ZIP
VC6.0/2013下CAsyncSocket类异步实现服务器与客户端网络通信,Server支持多客户端并发 访问,支持大数据包传输。简单的现程安全队列ThreadSafeQueue;CServerSocket为服务端监听Socket类,CConnectSocket为连接至服务器的客户端Socket类;并发访问时只要封包大于1M以上数据包,性能基本可达到100M/S,完成普通的C/S服务完全没问题。本Demo基本上只需增加自己的数据处理就可直接应用于实际项目。

文件下载

资源详情

[{"title":"( 60 个子文件 152KB ) CAsyncSocket异步实现服务器与客户端","children":[{"title":"CAsyncSocket Demo","children":[{"title":"myServer","children":[{"title":"ReadMe.txt <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"myServer.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"myServer.rc2 <span style='color:#111;'> 400B </span>","children":null,"spread":false}],"spread":true},{"title":"myServer.v12.suo <span style='color:#111;'> 47.00KB </span>","children":null,"spread":false},{"title":"myServer.vcxproj.filters <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":"ClientSock.cpp <span style='color:#111;'> 7.67KB </span>","children":null,"spread":false},{"title":"myServer.dsp <span style='color:#111;'> 4.67KB </span>","children":null,"spread":false},{"title":"ServerSocket.cpp <span style='color:#111;'> 2.93KB </span>","children":null,"spread":false},{"title":"myServer.clw <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"myServer.vcxproj.user <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"myServer.h <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"myServer.aps <span style='color:#111;'> 35.57KB </span>","children":null,"spread":false},{"title":"myServer.vcxproj <span style='color:#111;'> 8.99KB </span>","children":null,"spread":false},{"title":"myServer.cpp <span style='color:#111;'> 2.27KB </span>","children":null,"spread":false},{"title":"myServerDlg.h <span style='color:#111;'> 1.99KB </span>","children":null,"spread":false},{"title":"ServerSocket.h <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"myServer.sln <span style='color:#111;'> 961B </span>","children":null,"spread":false},{"title":"myServer.suo <span style='color:#111;'> 16.50KB </span>","children":null,"spread":false},{"title":"myServer.dsw <span style='color:#111;'> 539B </span>","children":null,"spread":false},{"title":"myServer.plg <span style='color:#111;'> 772B </span>","children":null,"spread":false},{"title":"myServer.ncb <span style='color:#111;'> 161.00KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 210B </span>","children":null,"spread":false},{"title":"myServer.rc <span style='color:#111;'> 5.93KB </span>","children":null,"spread":false},{"title":"ClientSock.h <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"UpgradeLog.htm <span style='color:#111;'> 33.80KB </span>","children":null,"spread":false},{"title":"myServerDlg.cpp <span style='color:#111;'> 9.66KB </span>","children":null,"spread":false},{"title":"myServer.opt <span style='color:#111;'> 54.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"MyClient","children":[{"title":"ReadMe.txt <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"MyClient.rc2 <span style='color:#111;'> 400B </span>","children":null,"spread":false},{"title":"MyClient.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"MyClient.suo <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"ClientSock.cpp <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"MyClient.opt <span style='color:#111;'> 54.50KB </span>","children":null,"spread":false},{"title":"MyClient.h <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"MyClientDlg.h <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"MyClient.vcxproj <span style='color:#111;'> 8.17KB </span>","children":null,"spread":false},{"title":"MyClientDlg.cpp <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"MyClient.cpp <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false},{"title":"MyClient.clw <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"MyClient.sln <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"MyClient.dsp <span style='color:#111;'> 4.49KB </span>","children":null,"spread":false},{"title":"MyClient.dsw <span style='color:#111;'> 541B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"MyClient.plg <span style='color:#111;'> 250B </span>","children":null,"spread":false},{"title":"MyClient.rc <span style='color:#111;'> 7.31KB </span>","children":null,"spread":false},{"title":"MyClient.ncb <span style='color:#111;'> 177.00KB </span>","children":null,"spread":false},{"title":"MyClient.vcxproj.filters <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false},{"title":"MyClient.aps <span style='color:#111;'> 21.74KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 210B </span>","children":null,"spread":false},{"title":"MyClient.vcxproj.user <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"MyClient.v12.suo <span style='color:#111;'> 37.50KB </span>","children":null,"spread":false},{"title":"ClientSock.h <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"UpgradeLog.htm <span style='color:#111;'> 37.48KB </span>","children":null,"spread":false}],"spread":false},{"title":"PUBLIC","children":[{"title":"ThreadSafe_Set.cpp <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"ThreadSafeQueue.h <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"PublicFunc.cpp <span style='color:#111;'> 4.36KB </span>","children":null,"spread":false},{"title":"PublicFunc.h <span style='color:#111;'> 4.76KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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