for (Enumeration connections = tempConnections.elements(); connections.hasMoreElements();) { Connection connection = (Connection) connections.nextElement();
for (Enumeration connectionEnum = tempConnections.elements(); connectionEnum.hasMoreElements();) { Connection connection = (Connection) connectionEnum.nextElement();
    void close() {        closing = true;        Vector tempConnections = (Vector) connections.clone();        // Close all open connections        for (Enumeration connections = tempConnections.elements();                connections.hasMoreElements();) {            Connection connection = (Connection) connections.nextElement();            connection.terminate();        }        // Stop sending data        if (connectionRelay != null) {            connectionRelay.stop();            connectionRelay = null;        }    }