/** shutdown the connections and disallow accepting of new connections */ public void shutdown() { shutdown = true; Iterator iter = getActiveConnections().iterator(); GnutellaConnection conn; while (iter.hasNext()) { conn = (GnutellaConnection) iter.next(); conn.disconnect(); } }