C++与android通过socket通信(上个版本端口弄错了,这个可以运行)

上传者: yxg190221 | 上传时间: 2020-02-10 03:17:29 | 文件大小: 4.11MB | 文件类型: zip
C++编写的服务器端跟android上编写的手机客户端进行socket通信,传动多种数据。用VC6.0直接打开C++ Server,用eclipse直接打开android socketTest。注意修改一下安卓代码中的IP地址。程序中java和C++的通信的内容使用了:http://download.csdn.net/detail/nuptboyzhb/4595415中的内容,在此感谢。

文件下载

资源详情

[{"title":"( 65 个子文件 4.11MB ) C++与android通过socket通信(上个版本端口弄错了,这个可以运行)","children":[{"title":"C++ Server","children":[{"title":"Server.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"Server.ncb <span style='color:#111;'> 41.00KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"Server.pch <span style='color:#111;'> 4.41MB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 76.00KB </span>","children":null,"spread":false},{"title":"Server.ilk <span style='color:#111;'> 195.22KB </span>","children":null,"spread":false},{"title":"Server.pdb <span style='color:#111;'> 449.00KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 233.00KB </span>","children":null,"spread":false},{"title":"Server.bsc <span style='color:#111;'> 1.88MB </span>","children":null,"spread":false},{"title":"source.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"source.obj <span style='color:#111;'> 14.47KB </span>","children":null,"spread":false},{"title":"Server.exe <span style='color:#111;'> 184.09KB </span>","children":null,"spread":false}],"spread":true},{"title":"Server.dsw <span style='color:#111;'> 518B </span>","children":null,"spread":false},{"title":"source.cpp <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"Server.dsp <span style='color:#111;'> 4.18KB </span>","children":null,"spread":false},{"title":"Server.plg <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false}],"spread":true},{"title":"android socketTest","children":[{"title":".project <span style='color:#111;'> 849B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"lint.xml <span style='color:#111;'> 97B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"sockettest001","children":[{"title":"MainActivity.java <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"Employee.java <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 334B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'> 263B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 794B </span>","children":null,"spread":false}],"spread":true},{"title":"values-sw600dp","children":[{"title":"dimens.xml <span style='color:#111;'> 203B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 230B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 697B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 220B </span>","children":null,"spread":false}],"spread":false},{"title":"values-sw720dp-land","children":[{"title":"dimens.xml <span style='color:#111;'> 277B </span>","children":null,"spread":false}],"spread":false},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 391B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"sockettest001","children":[{"title":"BuildConfig.java <span style='color:#111;'> 167B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 543.16KB </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 50.19KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"socketTest010.apk <span style='color:#111;'> 251.83KB </span>","children":null,"spread":false},{"title":"resources.ap_ <span style='color:#111;'> 40.10KB </span>","children":null,"spread":false},{"title":"socketTest001.apk <span style='color:#111;'> 251.84KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"sockettest001","children":[{"title":"R$layout.class <span style='color:#111;'> 424B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 452B </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 482B </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 428B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 361B </span>","children":null,"spread":false},{"title":"Employee.class <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 446B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 743B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 493B </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 409B </span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"android-support-v4-81355f6d199f278aafbca2cc55b6872a.jar <span style='color:#111;'> 206.37KB </span>","children":null,"spread":false},{"title":"android-support-v4-e13637ff8b18f752f5974e2b4dc7b388.jar <span style='color:#111;'> 206.37KB </span>","children":null,"spread":false}],"spread":false},{"title":"jarlist.cache <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"crunch","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.82KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 17.47KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"classes.dex <span style='color:#111;'> 610.64KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

  • thayer007 :
    学习了,非常感谢!
    2020-03-27
  • d02540329 :
    不错学习了!真心感谢啊!对我有所启发。
    2018-11-19
  • 包龙星137 :
    很喜欢这个方法,学习了,感谢
    2018-01-16
  • cs8512 :
    对我有所启发。
    2017-12-04
  • 小风_時線TimeLine :
    不错,学习了。
    2016-08-22

免责申明

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