From 2b77426f2c37342d979fb44b8bb89991d61df6d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 11 Apr 2008 14:01:29 +0000 Subject: [PATCH] add constructor that connects to localhost at default port git-svn-id: http://trooper/svn/projects/jSite/trunk@714 c3eda9e8-030b-0410-8277-bc7414b0a119 --- src/net/pterodactylus/util/fcp/FcpConnection.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/net/pterodactylus/util/fcp/FcpConnection.java b/src/net/pterodactylus/util/fcp/FcpConnection.java index 9a83f4e..d585022 100644 --- a/src/net/pterodactylus/util/fcp/FcpConnection.java +++ b/src/net/pterodactylus/util/fcp/FcpConnection.java @@ -70,6 +70,17 @@ public class FcpConnection { private Map incomingMessageStatistics = Collections.synchronizedMap(new HashMap()); /** + * Creates a new FCP connection to the freenet node running on localhost, + * using the default port. + * + * @throws UnknownHostException + * if the hostname can not be resolved + */ + public FcpConnection() throws UnknownHostException { + this(InetAddress.getLocalHost()); + } + + /** * Creates a new FCP connection to the Freenet node running on the given * host, listening on the default port. * -- 2.7.4