摘要: 多线程Main代码: new Thread(new TextUploadServer()).start(); new Thread(new TextUploadClient()).start(); 客户端代码: 1 public class TextUploadClient implements Runnable { 2 @Override 3 public void run() { 4 try { 5 Socket socket = new Socket(InetAddress.getLocalHost(), 5000... 阅读全文
posted @ 2013-07-26 21:19 刘文天 阅读(243) 评论(0) 推荐(0) 编辑