TCP一对多通信_基于Select模型

上传者: wuxia2118 | 上传时间: 2021-07-19 08:54:40 | 文件大小: 88KB | 文件类型: RAR
我用MFC VC6编写的一个 TCP 一对多通信的程序(MFC 对话框程序),就是服务器端利用Select模型技术, 能同时接收多个客户端的消息, 其次, 服务器端还能将消息群发给所有已连接的客户端, 实现的基本思路 是使用Select模型的套接字集合管理与每个客户端进行通信的套接字。由于Select模型是阻塞的,因此将Select模型放到一个单独的线程中。

文件下载

资源详情

[{"title":"( 37 个子文件 88KB ) TCP一对多通信_基于Select模型","children":[{"title":"运行界面.doc <span style='color:#111;'> 46.00KB </span>","children":null,"spread":false},{"title":"Select服务器端","children":[{"title":"Selwins.dsw <span style='color:#111;'> 520B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 777B </span>","children":null,"spread":false},{"title":"Selwins.ncb <span style='color:#111;'> 65.00KB </span>","children":null,"spread":false},{"title":"SelwinsDlg.h <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false},{"title":"Selwins.rc <span style='color:#111;'> 4.77KB </span>","children":null,"spread":false},{"title":"Selwins.aps <span style='color:#111;'> 34.24KB </span>","children":null,"spread":false},{"title":"Selwins.cpp <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"SelwinsDlg.cpp <span style='color:#111;'> 7.09KB </span>","children":null,"spread":false},{"title":"Selwins.clw <span style='color:#111;'> 1001B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Selwins.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"Selwins.rc2 <span style='color:#111;'> 399B </span>","children":null,"spread":false}],"spread":true},{"title":"StdAfx.cpp <span style='color:#111;'> 209B </span>","children":null,"spread":false},{"title":"Selwins.plg <span style='color:#111;'> 539B </span>","children":null,"spread":false},{"title":"Selwins.opt <span style='color:#111;'> 52.50KB </span>","children":null,"spread":false},{"title":"Selwins.h <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"Selwins.dsp <span style='color:#111;'> 4.08KB </span>","children":null,"spread":false}],"spread":false},{"title":"普通客户端","children":[{"title":"resource.h <span style='color:#111;'> 915B </span>","children":null,"spread":false},{"title":"TCPzcliDlg.cpp <span style='color:#111;'> 6.30KB </span>","children":null,"spread":false},{"title":"TCPzcli.dsp <span style='color:#111;'> 4.08KB </span>","children":null,"spread":false},{"title":"TCPzcli.aps <span style='color:#111;'> 20.47KB </span>","children":null,"spread":false},{"title":"TCPzcli.opt <span style='color:#111;'> 52.50KB </span>","children":null,"spread":false},{"title":"TCPzcli.rc <span style='color:#111;'> 5.52KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"TCPzcli.rc2 <span style='color:#111;'> 399B </span>","children":null,"spread":false},{"title":"TCPzcli.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"TCPzcli.dsw <span style='color:#111;'> 520B </span>","children":null,"spread":false},{"title":"TCPzcliDlg.h <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"TCPzcli.h <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 209B </span>","children":null,"spread":false},{"title":"TCPzcli.clw <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"TCPzcli.ncb <span style='color:#111;'> 73.00KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"TCPzcli.plg <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"TCPzcli.cpp <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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