Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

ghzjtian/TCP_Android

Repository files navigation

测试 Android TCP 连接的建立和数据的发送.

参考: https://www.myandroidsolutions.com/2012/07/20/android-tcp-connection-tutorial/#.Wpjr_RNuaF0

该项目是 Client端 的项目.

服务端的地址:https://github.com/ghzjtian/TCP_Server

1.运行的环境

  • 1.MacBook Pro (13-inch, 2016, Four Thunderbolt 3 Ports)
  • 2.java ifo:
MBP:~ tianzeng$ java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
  • 3.Android Studio ifo

2.开始运行的步骤

  • 1.先点击 Server 端的 Start
  • 2.打开 APP.
  • 3.即可收发数据.

3.相关的截图

  • 1.点击开始后,等等 Client 的连接.

  • 2.连接建立后,数据的发送及 Android 端的显示.

About

测试 TCP Android 端的连接

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages