实验6-基于CSocket的网络程序设计

上传者: qiwuji | 上传时间: 2019-12-21 20:29:56 | 文件大小: 3.73MB | 文件类型: rar
1、实验目的与要求: (1)理解并掌握 MFC 类层次结构和基本编程方法。 (2)熟练掌握 CSocket 类的编程模型及其使用方式。 (3)采用 C/S 模式,服务器可以同时与多个客户机建立连接,为多个客户机服务。 服务器接收客户机发来的信息,然后将转发给聊天室的其他客户机,从而实现多个客户机之间的 信息交换。服务器动态统计进入聊天室的客户机数目,并显示出来,及时显示新的客户机进入和退出 聊天室的信息,转发给其他客户机。用户进入服务器程序后,用户应首先输入监听端口号,启动监听 等待客户机的连接请求,当客户机端的连接请求到来时,服务器接收并进入与客户机的会话。

文件下载

资源详情

[{"title":"( 72 个子文件 3.73MB ) 实验6-基于CSocket的网络程序设计","children":[{"title":"实验6-基于CSocket的网络程序设计","children":[{"title":"Codes","children":[{"title":"tc","children":[{"title":"res","children":[{"title":"tc.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"tc.rc2 <span style='color:#111;'> 394B </span>","children":null,"spread":false}],"spread":true},{"title":"tc.opt <span style='color:#111;'> 48.50KB </span>","children":null,"spread":false},{"title":"tc.aps <span style='color:#111;'> 21.14KB </span>","children":null,"spread":false},{"title":"tc.rc <span style='color:#111;'> 5.79KB </span>","children":null,"spread":false},{"title":"tc.plg <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"Msg.cpp <span style='color:#111;'> 841B </span>","children":null,"spread":false},{"title":"CSocket.cpp <span style='color:#111;'> 881B </span>","children":null,"spread":false},{"title":"tc.dsw <span style='color:#111;'> 527B </span>","children":null,"spread":false},{"title":"tcDlg.cpp <span style='color:#111;'> 9.36KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"tcDlg.h <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"tc.clw <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"tc.ncb <span style='color:#111;'> 121.00KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"tc.h <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"tc.exe <span style='color:#111;'> 116.08KB </span>","children":null,"spread":false},{"title":"StdAfx.obj <span style='color:#111;'> 104.26KB </span>","children":null,"spread":false},{"title":"tc.pdb <span style='color:#111;'> 441.00KB </span>","children":null,"spread":false},{"title":"Msg.obj <span style='color:#111;'> 8.95KB </span>","children":null,"spread":false},{"title":"CSocket.obj <span style='color:#111;'> 7.84KB </span>","children":null,"spread":false},{"title":"tc.obj <span style='color:#111;'> 14.93KB </span>","children":null,"spread":false},{"title":"tc.ilk <span style='color:#111;'> 258.91KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 225.00KB </span>","children":null,"spread":false},{"title":"tc.pch <span style='color:#111;'> 5.39MB </span>","children":null,"spread":false},{"title":"tcDlg.obj <span style='color:#111;'> 47.96KB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 356.00KB </span>","children":null,"spread":false},{"title":"tc.res <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false}],"spread":false},{"title":"tc.cpp <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"tc.dsp <span style='color:#111;'> 4.23KB </span>","children":null,"spread":false},{"title":"Msg.h <span style='color:#111;'> 546B </span>","children":null,"spread":false},{"title":"CSocket.h <span style='color:#111;'> 598B </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.42KB </span>","children":null,"spread":false}],"spread":false},{"title":"ts","children":[{"title":"ts.plg <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"LSocket.cpp <span style='color:#111;'> 815B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"ts.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"ts.rc2 <span style='color:#111;'> 394B </span>","children":null,"spread":false}],"spread":true},{"title":"ts.opt <span style='color:#111;'> 49.50KB </span>","children":null,"spread":false},{"title":"ts.aps <span style='color:#111;'> 20.71KB </span>","children":null,"spread":false},{"title":"ts.clw <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"ts.h <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"ts.dsw <span style='color:#111;'> 527B </span>","children":null,"spread":false},{"title":"LSocket.h <span style='color:#111;'> 660B </span>","children":null,"spread":false},{"title":"ts.dsp <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false},{"title":"Msg.cpp <span style='color:#111;'> 783B </span>","children":null,"spread":false},{"title":"CSocket.cpp <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"tsDlg.h <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 909B </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"ts.ncb <span style='color:#111;'> 137.00KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"LSocket.obj <span style='color:#111;'> 7.85KB </span>","children":null,"spread":false},{"title":"StdAfx.obj <span style='color:#111;'> 104.26KB </span>","children":null,"spread":false},{"title":"ts.pdb <span style='color:#111;'> 449.00KB </span>","children":null,"spread":false},{"title":"ts.obj <span style='color:#111;'> 14.61KB </span>","children":null,"spread":false},{"title":"Msg.obj <span style='color:#111;'> 8.95KB </span>","children":null,"spread":false},{"title":"ts.exe <span style='color:#111;'> 112.08KB </span>","children":null,"spread":false},{"title":"CSocket.obj <span style='color:#111;'> 13.38KB </span>","children":null,"spread":false},{"title":"ts.res <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 225.00KB </span>","children":null,"spread":false},{"title":"ts.ilk <span style='color:#111;'> 260.64KB </span>","children":null,"spread":false},{"title":"tsDlg.obj <span style='color:#111;'> 37.67KB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 356.00KB </span>","children":null,"spread":false},{"title":"ts.pch <span style='color:#111;'> 5.39MB </span>","children":null,"spread":false}],"spread":false},{"title":"ts.rc <span style='color:#111;'> 5.44KB </span>","children":null,"spread":false},{"title":"tsDlg.cpp <span style='color:#111;'> 7.35KB </span>","children":null,"spread":false},{"title":"Msg.h <span style='color:#111;'> 555B </span>","children":null,"spread":false},{"title":"CSocket.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"ts.cpp <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.42KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"实验6-基于CSocket的网络程序设计.doc <span style='color:#111;'> 33.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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