首页 开发技术 C++     /    CSocket通信多线程数据双向收发实例VS2010(全部源码)

CSocket通信多线程数据双向收发实例VS2010(全部源码)

上传者: jaxthon | 上传时间:2026/1/2 4:37:31 | 文件大小:671KB | 文件类型:rar
CSocket通信多线程数据双向收发实例VS2010(全部源码)
最新的CC++Socket技术总结!开发环境:VS2010实现功能:1、运用多线程和Socket技术实现SocketServer端侦听多个客户端请求;
2、实现服务器端循环处理客户端不同请求从而实现不同测试要求,并向客户端循环发送数据;
3、实现客户端向服务器端发送不同测试命令,并接收服务器端发送的数据;
4、运用指针上下文实现不同线程的数据共享;
5、实现多个客户端同时连接服务器端;
6、服务器端程序和客户端程序可以运行在同一台计算机,也可以运行在两台计算机。
测试方法:1、打开ServerDemo.exe2、打开ClientDemo.exe并输入127.0.0.1(同一台计算机)或目标机IP地址(两台计算机) 本软件ID:7766327

文件下载

资源详情

[{"title":"(94个子文件671KB)CSocket通信多线程数据双向收发实例VS2010(全部源码)","children":[{"title":"CSocket通信多线程实例VS2010","children":[{"title":"Release","children":[{"title":"ClientDemo.pdb <span style='color:#111;'>499.00KB</span>","children":null,"spread":false},{"title":"ClientDemo.exe <span style='color:#111;'>11.50KB</span>","children":null,"spread":false},{"title":"ServerDemo.pdb <span style='color:#111;'>283.00KB</span>","children":null,"spread":false},{"title":"ServerDemo.exe <span style='color:#111;'>9.00KB</span>","children":null,"spread":false}],"spread":true},{"title":"SocketDemo.sln <span style='color:#111;'>1.33KB</span>","children":null,"spread":false},{"title":"ServerDemo","children":[{"title":"Release","children":[{"title":"RTDemo.Build.CppClean.log <span style='color:#111;'>1.65KB</span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'>438B</span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'>13.59KB</span>","children":null,"spread":false},{"title":"ServerDemo.exe.intermediate.manifest <span style='color:#111;'>381B</span>","children":null,"spread":false},{"title":"mt.read.1.tlog <span style='color:#111;'>788B</span>","children":null,"spread":false},{"title":"RTDemo.lastbuildstate <span style='color:#111;'>61B</span>","children":null,"spread":false},{"title":"mt.command.1.tlog <span style='color:#111;'>528B</span>","children":null,"spread":false},{"title":"cl.command.1.tlog <span style='color:#111;'>880B</span>","children":null,"spread":false},{"title":"ServerDemo.log <span style='color:#111;'>3.83KB</span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'>89.92KB</span>","children":null,"spread":false},{"title":"ServerDemo.lastbuildstate <span style='color:#111;'>87B</span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'>624B</span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'>1.43KB</span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'>2.69KB</span>","children":null,"spread":false},{"title":"ServerDemo.Build.CppClean.log <span style='color:#111;'>1.55KB</span>","children":null,"spread":false},{"title":"mt.write.1.tlog <span style='color:#111;'>342B</span>","children":null,"spread":false},{"title":"vc100.pdb <span style='color:#111;'>108.00KB</span>","children":null,"spread":false},{"title":"RTDemo.log <span style='color:#111;'>3.89KB</span>","children":null,"spread":false}],"spread":false},{"title":"ServerDemo.vcxproj <span style='color:#111;'>4.63KB</span>","children":null,"spread":false},{"title":"ServerDemo.vcxproj.user <span style='color:#111;'>222B</span>","children":null,"spread":false},{"title":"include","children":[{"title":"lqueue.h <span style='color:#111;'>1.71KB</span>","children":null,"spread":false},{"title":"Queue.h <span style='color:#111;'>2.77KB</span>","children":null,"spread":false},{"title":"main.h <span style='color:#111;'>1.13KB</span>","children":null,"spread":false}],"spread":true},{"title":"RTDemo.vcxproj.filters <span style='color:#111;'>1.24KB</span>","children":null,"spread":false},{"title":"main","children":[{"title":"main.cpp <span style='color:#111;'>7.42KB</span>","children":null,"spread":false}],"spread":true},{"title":"TcpServer.cpp <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"RTDemo.vcxproj.user <span style='color:#111;'>143B</span>","children":null,"spread":false}],"spread":true},{"title":"SocketDemo.suo <span style='color:#111;'>17.00KB</span>","children":null,"spread":false},{"title":"ClientDemo","children":[{"title":"Release","children":[{"title":"CL.write.1.tlog <span style='color:#111;'>1.10KB</span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'>33.00KB</span>","children":null,"spread":false},{"title":"mt.read.1.tlog <span style='color:#111;'>788B</span>","children":null,"spread":false},{"title":"TcpDemo.lastbuildstate <span style='color:#111;'>87B</span>","children":null,"spread":false},{"title":"TcpDemo.log <span style='color:#111;'>2.79KB</span>","children":null,"spread":false},{"title":"ClientDemo.log <span style='color:#111;'>2.75KB</span>","children":null,"spread":false},{"title":"ClientDemo.exe.intermediate.manifest <span style='color:#111;'>381B</span>","children":null,"spread":false},{"title":"ClientDemo.Build.CppClean.log <span style='color:#111;'>1.71KB</span>","children":null,"spread":false},{"title":"mt.command.1.tlog <span style='color:#111;'>528B</span>","children":null,"spread":false},{"title":"cl.command.1.tlog <span style='color:#111;'>1.42KB</span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'>702.45KB</span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'>772B</span>","children":null,"spread":false},{"title":"TcpCtl.obj <span style='color:#111;'>104.22KB</span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'>1.59KB</span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'>2.97KB</span>","children":null,"spread":false},{"title":"ClientDemo.lastbuildstate <span style='color:#111;'>87B</span>","children":null,"spread":false},{"title":"mt.write.1.tlog <span style='color:#111;'>342B</span>","children":null,"spread":false},{"title":"TcpDemo.Build.CppClean.log <span style='color:#111;'>1.63KB</span>","children":null,"spread":false},{"title":"vc100.pdb <span style='color:#111;'>268.00KB</span>","children":null,"spread":false}],"spread":false},{"title":"TcpDemo.vcxproj.filters <span style='color:#111;'>1.21KB</span>","children":null,"spread":false},{"title":"TcpCtl.cpp <span style='color:#111;'>3.95KB</span>","children":null,"spread":false},{"title":"ClientDemo.vcxproj.filters <span style='color:#111;'>357B</span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'>830B</span>","children":null,"spread":false},{"title":"ClientDemo.vcxproj <span style='color:#111;'>3.97KB</span>","children":null,"spread":false},{"title":"main.h <span style='color:#111;'>44B</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc100.idb <span style='color:#111;'>635.00KB</span>","children":null,"spread":false},{"title":"link.7056.write.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"TcpDemo.exe.embed.manifest.res <span style='color:#111;'>472B</span>","children":null,"spread":false},{"title":"link.4612.write.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"link.7056-cvtres.write.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'>838B</span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'>33.22KB</span>","children":null,"spread":false},{"title":"link.7056-cvtres.read.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"mt.read.1.tlog <span style='color:#111;'>306B</span>","children":null,"spread":false},{"title":"rc.write.1.tlog <span style='color:#111;'>286B</span>","children":null,"spread":false},{"title":"TcpDemo.lastbuildstate <span style='color:#111;'>65B</span>","children":null,"spread":false},{"title":"link.4612.read.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"TcpDemo.log <span style='color:#111;'>2.58KB</span>","children":null,"spread":false},{"title":"rc.read.1.tlog <span style='color:#111;'>278B</span>","children":null,"spread":false},{"title":"link.4612-cvtres.read.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"mt.command.1.tlog <span style='color:#111;'>378B</span>","children":null,"spread":false},{"title":"cl.command.1.tlog <span style='color:#111;'>1.25KB</span>","children":null,"spread":false},{"title":"link-cvtres.read.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'>74.84KB</span>","children":null,"spread":false},{"title":"TcpDemo.exe.intermediate.manifest <span style='color:#111;'>381B</span>","children":null,"spread":false},{"title":"TcpDemo_manifest.rc <span style='color:#111;'>204B</span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'>824B</span>","children":null,"spread":false},{"title":"TcpCtl.obj <span style='color:#111;'>35.23KB</span>","children":null,"spread":false},{"title":"link.7056.read.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"link-cvtres.write.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"link.4612-cvtres.write.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'>1.55KB</span>","children":null,"spread":false},{"title":"rc.command.1.tlog <span style='color:#111;'>516B</span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'>3.06KB</span>","children":null,"spread":false},{"title":"TcpDemo.exe.embed.manifest <span style='color:#111;'>406B</span>","children":null,"spread":false},{"title":"mt.write.1.tlog <span style='color:#111;'>306B</span>","children":null,"spread":false},{"title":"TcpDemo.Build.CppClean.log <span style='color:#111;'>2.01KB</span>","children":null,"spread":false},{"title":"vc100.pdb <span style='color:#111;'>292.00KB</span>","children":null,"spread":false}],"spread":false},{"title":"TcpDemo.vcxproj.user <span style='color:#111;'>143B</span>","children":null,"spread":false},{"title":"TcpCtl.h <span style='color:#111;'>1.70KB</span>","children":null,"spread":false},{"title":"ClientDemo.vcxproj.user <span style='color:#111;'>222B</span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • yong718100_lyy:
    资源很好,谢谢分享2019-11-22
  • ColyYang:
    谢谢分享,很适合初学者2019-05-08
  • bixinwei:
    感谢分享,谢谢2019-01-22
  • muyi7:
    很好,初学者有用。2019-01-09
  • qq_40693872:
    还没下下来2018-04-01

免责申明

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