X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Ftodesbaum%2Fjsite%2Fapplication%2FFreenet7Interface.java;h=dae72fb38d017b2e73dd5770661adfc469b53aa3;hb=3ef9769cede04873ed7ffaabdf495895bbf080bd;hp=78250b21ad7554fd6a7fe8a0e43d91489a4188d7;hpb=38bdc433e50669e8244a63b5af59e597f88f1d29;p=jSite.git diff --git a/src/main/java/de/todesbaum/jsite/application/Freenet7Interface.java b/src/main/java/de/todesbaum/jsite/application/Freenet7Interface.java index 78250b2..dae72fb 100644 --- a/src/main/java/de/todesbaum/jsite/application/Freenet7Interface.java +++ b/src/main/java/de/todesbaum/jsite/application/Freenet7Interface.java @@ -1,5 +1,5 @@ /* - * jSite - Freenet7Interface.java - Copyright © 2006–2012 David Roden + * jSite - Freenet7Interface.java - Copyright © 2006–2014 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -46,31 +46,6 @@ public class Freenet7Interface { private Connection connection; /** - * Sets the hostname of the node. The default port for FCP2 connections ({@link Node#DEFAULT_PORT}) - * is used. - * - * @param hostname - * The hostname of the node - */ - public void setNodeAddress(String hostname) { - node = new Node(hostname); - connection = new Connection(node, "jSite-" + number + "-connection-" + counter++); - } - - /** - * Sets the hostname and the port of the node. - * - * @param hostname - * The hostname of the node - * @param port - * The port number of the node - */ - public void setNodeAddress(String hostname, int port) { - node = new Node(hostname, port); - connection = new Connection(node, "jSite-" + number + "-connection-" + counter++); - } - - /** * Sets hostname and port from the given node. * * @param node @@ -87,14 +62,6 @@ public class Freenet7Interface { } /** - * Removes the current node from the interface. - */ - public void removeNode() { - node = null; - connection = null; - } - - /** * Returns the node this interface is connecting to. * * @return The node