public synchronized void applyToAll ( SocketOperator op ) throws Exception { Enumeration keys = allSockets . keys ( ) ; while ( keys . hasMoreElements ( ) ) { SocketBox myBox = ( SocketBox ) keys . nextElement ( ) ; op . operate ( myBox ) ; } }
Apply the suplied callback to all socketBoxes .