MFC_socket通信实例 MFC_socket通信实例

上传者: u011417605 | 上传时间: 2019-12-21 21:22:25 | 文件大小: 289KB | 文件类型: zip
MFC_socket通信实例 我是使用VS2012来做的,不知道其他的环境会不会有问题。 使用VS2012分别打开工程AppSocClient和AppSocServer, 分别build两个工程,启动AppSocServer工程,输入appid和message,点击发送,即可。 如果出现create process failed,则可能是函数StartApp()里面的../../AppSocClient/Debug/AppSocClient.exe此路径没有指到对应的AppSocClient.exe。 AppSocClient.exe是服务端启动的,不用手动启动,如果有其他需求,可以自行修改。 输入不同的appid则启动不同的AppSocClient.exe,启动后,再次点击发送会收到AppSocServer.exe发送的消息,。 只要输入appid和message就可以给对应的客户端发消息,是长连接的。 关闭的时候,请先关闭客户端,因为线程没有处理,进程会卡死的。

文件下载

资源详情

[{"title":"( 41 个子文件 289KB ) MFC_socket通信实例 MFC_socket通信实例","children":[{"title":"MFC_socket通信实例","children":[{"title":"使用说明.txt <span style='color:#111;'> 642B </span>","children":null,"spread":false},{"title":"AppSocClient","children":[{"title":"AppSocClient.v11.suo <span style='color:#111;'> 31.00KB </span>","children":null,"spread":false},{"title":"AppSocClient.suo <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"AppSocClient","children":[{"title":"AppSocClient.vcxproj.filters <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"AppSocClient.cpp <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"AppSocClient.h <span style='color:#111;'> 541B </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false},{"title":"AppSocClient.vcxproj.user <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"AppSocClient.rc2 <span style='color:#111;'> 808B </span>","children":null,"spread":false},{"title":"AppSocClient.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false}],"spread":true},{"title":"AppSocClient.aps <span style='color:#111;'> 103.96KB </span>","children":null,"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 214B </span>","children":null,"spread":false},{"title":"AppSocClientDlg.cpp <span style='color:#111;'> 5.89KB </span>","children":null,"spread":false},{"title":"AppSocClient.vcxproj <span style='color:#111;'> 5.91KB </span>","children":null,"spread":false},{"title":"AppSocClientDlg.h <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"AppSocClient.rc <span style='color:#111;'> 11.44KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 314B </span>","children":null,"spread":false}],"spread":false},{"title":"AppSocClient.sln <span style='color:#111;'> 903B </span>","children":null,"spread":false}],"spread":true},{"title":"AppSocServer","children":[{"title":"AppSocServer.suo <span style='color:#111;'> 38.50KB </span>","children":null,"spread":false},{"title":"AppSocServer.sln <span style='color:#111;'> 903B </span>","children":null,"spread":false},{"title":"AppSocServer.v11.suo <span style='color:#111;'> 38.50KB </span>","children":null,"spread":false},{"title":"AppSocServer","children":[{"title":"BaseString.h <span style='color:#111;'> 536B </span>","children":null,"spread":false},{"title":"AppSocServer.h <span style='color:#111;'> 541B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"AppSocServer.vcxproj.filters <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"AppSocServerDlg.cpp <span style='color:#111;'> 8.78KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false},{"title":"AppSocServerDlg.h <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"AppSocServer.rc <span style='color:#111;'> 11.35KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"AppSocServer.rc2 <span style='color:#111;'> 808B </span>","children":null,"spread":false},{"title":"AppSocServer.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false}],"spread":false},{"title":"AppSocServer.cpp <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 214B </span>","children":null,"spread":false},{"title":"AppSocServer.vcxproj <span style='color:#111;'> 6.05KB </span>","children":null,"spread":false},{"title":"AppSocServer.aps <span style='color:#111;'> 103.98KB </span>","children":null,"spread":false},{"title":"AppSocServer.vcxproj.user <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"BaseString.cpp <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 314B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • qq_20252779 :
    下载先看看 初学者有用
    2016-11-29
  • qq_20252779 :
    下载先看看 初学者有用
    2016-11-29

免责申明

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