摘要: 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 阅读全文
posted @ 2013-05-25 23:49 heavenliu 阅读(2367) 评论(0) 推荐(0) 编辑