首页 开发技术 C++     /    控制台TCP通信程序

控制台TCP通信程序

上传者: lulong1985 | 上传时间:2025/1/14 2:53:38 | 文件大小:66KB | 文件类型:rar
控制台TCP通信程序
1.将Server目录下的Server.cpp中第58行到61行的IP地址改为本机实际的IP地址。
2.编译Server.cpp并运行。
在命令行方式下运行。
程序无输出,保持其运行,等待Client连接。
3.Client目录下的Client.cpp不需修改,可以直接编译。
但因为有命令行参数,所以不能直接在VC中运行,需要在命令行方式下运行。
命令格式为:client服务器IP地址3000也可将Debug目录下的批处理文件run.bat修改后双击运行。
此时,Client显示“发送成功”,Server显示“连接中止......”。
本软件ID:460037

文件下载

资源详情

[{"title":"(22个子文件66KB)控制台TCP通信程序","children":[{"title":"¿ØÖÆ̨ͨÐųÌÐò","children":[{"title":"Client","children":[{"title":"Client.cpp <span style='color:#111;'>1.73KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"控制台通信程序","children":[{"title":"Client","children":[{"title":"Client.dsp <span style='color:#111;'>3.36KB</span>","children":null,"spread":false},{"title":"Client.ncb <span style='color:#111;'>49.00KB</span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'>293B</span>","children":null,"spread":false},{"title":"Client.plg <span style='color:#111;'>1.10KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"Client.exe <span style='color:#111;'>152.06KB</span>","children":null,"spread":false},{"title":"run.bat <span style='color:#111;'>30B</span>","children":null,"spread":false}],"spread":true},{"title":"ReadMe.txt <span style='color:#111;'>1.18KB</span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'>667B</span>","children":null,"spread":false},{"title":"Client.dsw <span style='color:#111;'>520B</span>","children":null,"spread":false},{"title":"Client.opt <span style='color:#111;'>47.50KB</span>","children":null,"spread":false}],"spread":true},{"title":"Server","children":[{"title":"StdAfx.cpp <span style='color:#111;'>293B</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"Server.exe <span style='color:#111;'>152.06KB</span>","children":null,"spread":false}],"spread":true},{"title":"ReadMe.txt <span style='color:#111;'>1.18KB</span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'>667B</span>","children":null,"spread":false},{"title":"Server.dsp <span style='color:#111;'>4.47KB</span>","children":null,"spread":false},{"title":"Server.opt <span style='color:#111;'>47.50KB</span>","children":null,"spread":false},{"title":"Server.plg <span style='color:#111;'>1.27KB</span>","children":null,"spread":false},{"title":"Server.ncb <span style='color:#111;'>49.00KB</span>","children":null,"spread":false},{"title":"Server.cpp <span style='color:#111;'>2.52KB</span>","children":null,"spread":false},{"title":"Server.dsw <span style='color:#111;'>520B</span>","children":null,"spread":false}],"spread":true},{"title":"程序运行说明.txt <span style='color:#111;'>445B</span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • wenshengzhao:
    适合初学者看2014-06-12
  • stone2317:
    基本的通信程序,然后代码基本由注释,新手适合结合百度搜索看2012-08-18

免责申明

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