make connections work
[jSite2.git] / src / net / pterodactylus / jsite / core / Core.java
index f04bb40..38e8914 100644 (file)
@@ -51,10 +51,12 @@ public interface Core {
         * 
         * @param node
         *            The node to add
+        * @return <code>true</code> if the node was added, <code>false</code>
+        *         if it was not added because it was already known
         * @throws UnknownHostException
         *             if the hostname of the node can not be resolved
         */
-       public void addNode(Node node) throws UnknownHostException;
+       public boolean addNode(Node node) throws UnknownHostException;
 
        /**
         * Removes the given node from the core.