Ejemplo n.º 1
0
 public void run() {
   ClientHandler cl = null;
   while (!done) {
     try {
       Socket s = server.accept();
       cl = new ClientHandler(s);
       cl.start();
     } catch (IOException ex) {
       if (cl != null) cl.interrupt();
     }
   }
 }
 public void BroadcastMessage(String message) {
   for (ClientHandler client : clientFramework) {
     // gameController.Print("Enviat un Missatge Broadcast al client: " + client);
     client.SendMessage(message);
   }
 }