summaryrefslogtreecommitdiff
path: root/src/org/noreply/fancydress/type3/routing/RoutingIP4.java
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2003-10-19 15:08:35 +0000
committerPeter Palfrader <peter@palfrader.org>2003-10-19 15:08:35 +0000
commita4c0d3d6d878da55435cb9d9cc8cff6199644199 (patch)
treee066aabfb7a143cd39c3740b4aedd701df5ac758 /src/org/noreply/fancydress/type3/routing/RoutingIP4.java
parent46a03a3ea3c26a65e4428bc9de036a01487aeda3 (diff)
Support random path creation
Diffstat (limited to 'src/org/noreply/fancydress/type3/routing/RoutingIP4.java')
-rw-r--r--src/org/noreply/fancydress/type3/routing/RoutingIP4.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/org/noreply/fancydress/type3/routing/RoutingIP4.java b/src/org/noreply/fancydress/type3/routing/RoutingIP4.java
index e0527a0..9db61dd 100644
--- a/src/org/noreply/fancydress/type3/routing/RoutingIP4.java
+++ b/src/org/noreply/fancydress/type3/routing/RoutingIP4.java
@@ -102,5 +102,21 @@ public class RoutingIP4 extends RoutingForward {
return result;
}
+ /**
+ * Get the hostname needed for connectig to the node.
+ *
+ * @return hostname.
+ */
+ public String getHostname() {
+ return ip.getHostAddress();
+ }
+ /**
+ * Get the port needed for connectig to the node.
+ *
+ * @return port
+ */
+ public int getPort() {
+ return port;
+ }
}