Exemplo n.º 1
0
 /// function used to broadcast everything the server receives to all clients///
 public void broadcastObject(Object obj) {
   for (ServerThread thread :
       clientSockets) { // for each thread, write object to client in thread.
     thread.write(obj);
   }
 }