socket简易聊天室
服务器端 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * @version 2012-7-26 下午04:04:18 **/ public class server { // 服务器端口 private static final int SERVERPORT = 54321; // 客户端连接 private static List<Socket> mClientList = new ArrayList<Socket>(); // 线程池 private ExecutorService mExecutorService; //