|
@ -2,9 +2,11 @@ |
|
|
import java.io.IOException; |
|
|
import java.io.IOException; |
|
|
import java.net.ServerSocket; |
|
|
import java.net.ServerSocket; |
|
|
import java.net.Socket; |
|
|
import java.net.Socket; |
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
public class ChatServer { |
|
|
public class ChatServer { |
|
|
private ServerSocket serverSocket; |
|
|
private ServerSocket serverSocket; |
|
|
|
|
|
private List<ClientHandler> clients; |
|
|
|
|
|
|
|
|
public ChatServer(int port) { |
|
|
public ChatServer(int port) { |
|
|
try { |
|
|
try { |
|
|