正确的Android TCP实现方法(Wifi测试通过)

上传者: u012788459 | 上传时间: 2019-12-21 21:26:08 | 文件大小: 94KB | 文件类型: zip
在网上找了很久Android上wifi的TCP通信,很多例子方法都不对,容易死,后来找到一篇非阻塞式的,然后将之做成了个Demo,大家要做这一块的请参考本例子,真正实用。实用Android Studio开发,亲测Wifi下测试顺畅

文件下载

资源详情

[{"title":"( 53 个子文件 94KB ) 正确的Android TCP实现方法(Wifi测试通过)","children":[{"title":"socket","children":[{"title":"bogoclient","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 5.23KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"classes","children":[{"title":"bogo","children":[{"title":"client","children":[{"title":"com","children":[{"title":"R$layout.class <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 441B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 398B </span>","children":null,"spread":false},{"title":"BogoclientActivity$1.class <span style='color:#111;'> 822B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 331B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 510B </span>","children":null,"spread":false},{"title":"BogoclientActivity.class <span style='color:#111;'> 3.67KB </span>","children":null,"spread":false},{"title":"BogoclientActivity$2.class <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 477B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 10.69KB </span>","children":null,"spread":false},{"title":"bogoclient.apk <span style='color:#111;'> 15.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 258B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"main.xml <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"bogoclient.iml <span style='color:#111;'> 662B </span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"bogo","children":[{"title":"client","children":[{"title":"com","children":[{"title":"BuildConfig.java <span style='color:#111;'> 257B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 922B </span>","children":null,"spread":false},{"title":"Manifest.java <span style='color:#111;'> 185B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"proguard.cfg <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"bogo","children":[{"title":"client","children":[{"title":"com","children":[{"title":"BogoclientActivity.java <span style='color:#111;'> 4.21KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 813B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 356B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 360B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 782B </span>","children":null,"spread":false}],"spread":false},{"title":".idea","children":[{"title":"scopes","children":[{"title":"scope_settings.xml <span style='color:#111;'> 143B </span>","children":null,"spread":false}],"spread":true},{"title":"misc.xml <span style='color:#111;'> 874B </span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'> 173B </span>","children":null,"spread":false},{"title":".name <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"copyright","children":[{"title":"profiles_settings.xml <span style='color:#111;'> 76B </span>","children":null,"spread":false}],"spread":true},{"title":"modules.xml <span style='color:#111;'> 293B </span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'> 171B </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 734B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 32.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"out","children":[{"title":"production","children":[{"title":"bogoclient","children":[{"title":"bogo","children":[{"title":"client","children":[{"title":"com","children":[{"title":"BuildConfig.class <span style='color:#111;'> 339B </span>","children":null,"spread":false},{"title":"BogoclientActivity$3.class <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 600B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 398B </span>","children":null,"spread":false},{"title":"BogoclientActivity$1.class <span style='color:#111;'> 830B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 331B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 514B </span>","children":null,"spread":false},{"title":"BogoclientActivity.class <span style='color:#111;'> 5.23KB </span>","children":null,"spread":false},{"title":"BogoclientActivity$2.class <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 477B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"bogoclient.apk <span style='color:#111;'> 17.52KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"tcp","children":[{"title":"server.c <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 74B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • a29343539 :
    感觉还行,只是感觉用着不是特别顺手.
    2018-04-30
  • zjt19870816 :
    感觉是不是不太全?
    2017-12-26
  • jingyi1981 :
    谢谢分享,还没有使用
    2017-10-09
  • zhaotiehuai :
    用studio怎么打开啊,不好意思,谁能说一下
    2017-07-01
  • kuangkuang2113 :
    简单用用可以
    2017-04-17

免责申明

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