Add commands to show the current connections and close them.
[xudocci.git] / src / main / java / net / pterodactylus / xdcc / core / Core.java
index 5b883db..6af2f73 100644 (file)
@@ -147,6 +147,15 @@ public class Core extends AbstractExecutionThreadService {
        //
 
        /**
+        * Returns all currently known connections.
+        *
+        * @return All currently known connections
+        */
+       public Collection<Connection> connections() {
+               return networkConnections.values();
+       }
+
+       /**
         * Returns all configured channels. Due to various circumstances, configured
         * channels might not actually be joined.
         *