摘要:
socket 作为一种通信机制,可以实现单机或者跨网络之间的通信,要有明确的server端和client端。android里面最简单的socket 通信的demo://1. IP 地址InetAddress inetAddress = InetAddress.getByName("IP address");// socket portSocket client = new Socket(inetAddress,61203,true);// get data streamInputStream in = client.getInputStream();OutputStream 阅读全文