MySock 应用Socket编程实现一个简单的网络聊天程序。VC++

上传者: shanxingshan | 上传时间: 2019-12-21 21:03:42 | 文件大小: 1.88MB | 文件类型: rar
应用Socket编程实现一个简单的网络聊天程序。聊天框架由客户端和服务器端组成,服务器连接、消息接收以及关闭等功能。是通过建立基于对话框的MFC工程文件来实现编程,并支持window socket。重点在于整体的设计是基于对话框和类的。 先进行对话框的布局以及各个控件属性的设置,再为控件添加响应函数和成员变量。客户端和服务器端整合到一个对话框,利用设置radio button可以对两者进行切换,并写入相应的程序代码。客户端对应“连接”按钮,服务器端对应“监听”按钮。为其添加socket类和相应的代码。添加类相应的各代码后,进行客户端和服务器端的连接。编译启动时,启动两份,分别选择客户端和服务器端就可以进行对话了。

文件下载

资源详情

( 33 个子文件 1.88MB ) MySock 应用Socket编程实现一个简单的网络聊天程序。VC++
MySock
ReadMe.txt 3.50KB
MySocket.h 1.41KB
StdAfx.h 1.08KB
MySock.aps 21.35KB
MySock.rc 6.22KB
MySockDlg.h 1.69KB
res
MySock.ico 1.05KB
MySock.rc2 398B
Thumbs.db 6.00KB
MySock.dsw 535B
MySock.h 1.29KB
MySock.cpp 2.11KB
RCa03588 11.85KB
MySock.ncb 105.00KB
MySocket.cpp 2.13KB
Debug
vc60.pdb 364.00KB
MySock.pdb 393.00KB
MySockDlg.obj 36.07KB
vc60.idb 345.00KB
StdAfx.obj 104.01KB
MySocket.obj 9.13KB
MySock.res 3.02KB
MySock.ilk 224.27KB
MySock.exe 112.08KB
MySock.pch 5.44MB
MySock.obj 14.91KB
MySock.clw 1.81KB
resource.h 1.34KB
MySock.opt 48.50KB
MySock.dsp 4.19KB
StdAfx.cpp 208B
MySock.plg 727B
MySockDlg.cpp 8.10KB
[{"title":"( 33 个子文件 1.88MB ) MySock 应用Socket编程实现一个简单的网络聊天程序。VC++","children":[{"title":"MySock","children":[{"title":"ReadMe.txt <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false},{"title":"MySocket.h <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"MySock.aps <span style='color:#111;'> 21.35KB </span>","children":null,"spread":false},{"title":"MySock.rc <span style='color:#111;'> 6.22KB </span>","children":null,"spread":false},{"title":"MySockDlg.h <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"MySock.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"MySock.rc2 <span style='color:#111;'> 398B </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"MySock.dsw <span style='color:#111;'> 535B </span>","children":null,"spread":false},{"title":"MySock.h <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"MySock.cpp <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"RCa03588 <span style='color:#111;'> 11.85KB </span>","children":null,"spread":false},{"title":"MySock.ncb <span style='color:#111;'> 105.00KB </span>","children":null,"spread":false},{"title":"MySocket.cpp <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc60.pdb <span style='color:#111;'> 364.00KB </span>","children":null,"spread":false},{"title":"MySock.pdb <span style='color:#111;'> 393.00KB </span>","children":null,"spread":false},{"title":"MySockDlg.obj <span style='color:#111;'> 36.07KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 345.00KB </span>","children":null,"spread":false},{"title":"StdAfx.obj <span style='color:#111;'> 104.01KB </span>","children":null,"spread":false},{"title":"MySocket.obj <span style='color:#111;'> 9.13KB </span>","children":null,"spread":false},{"title":"MySock.res <span style='color:#111;'> 3.02KB </span>","children":null,"spread":false},{"title":"MySock.ilk <span style='color:#111;'> 224.27KB </span>","children":null,"spread":false},{"title":"MySock.exe <span style='color:#111;'> 112.08KB </span>","children":null,"spread":false},{"title":"MySock.pch <span style='color:#111;'> 5.44MB </span>","children":null,"spread":false},{"title":"MySock.obj <span style='color:#111;'> 14.91KB </span>","children":null,"spread":false}],"spread":false},{"title":"MySock.clw <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"MySock.opt <span style='color:#111;'> 48.50KB </span>","children":null,"spread":false},{"title":"MySock.dsp <span style='color:#111;'> 4.19KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"MySock.plg <span style='color:#111;'> 727B </span>","children":null,"spread":false},{"title":"MySockDlg.cpp <span style='color:#111;'> 8.10KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • xjl_nad :
    不错学习了,谢谢分享!
    2018-10-26
  • standup7 :
    能用,但太乱了,初学者看着有点困难
    2016-08-08
  • like-Betty :
    还挺有帮助的,谢谢
    2015-06-19
  • 伊利低乳糖 :
    解压就出问题了,文件损坏
    2015-05-12
  • simple_dll :
    代码比较乱,不过还可以!!!!
    2015-03-18

免责申明

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