摘要:
多线程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... 阅读全文