This commit was manufactured by cvs2svn to create tag 'buildscript'.
[IRC.git] / Robust / src / ClassLibrary / InetAddress.java
diff --git a/Robust/src/ClassLibrary/InetAddress.java b/Robust/src/ClassLibrary/InetAddress.java
deleted file mode 100644 (file)
index 1ecbdda..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-public class InetAddress {
-    String hostname;
-    byte[] address;
-
-    public InetAddress(byte[] addr, String hostname) {
-       this.hostname=hostname;
-       this.address=addr;
-    }
-    
-    public static InetAddress getByAddress(String host, byte[] addr) {
-       return new InetAddress(addr, host);
-    }
-
-    public static InetAddress getByName(String hostname) {
-       InetAddress[] addresses=getAllByName(hostname);
-       return addresses[0];
-    }
-    
-    public byte[] getAddress() {
-       return address;
-    }
-
-    public static InetAddress[] getAllByName(String hostname) {
-       InetAddress[] addresses;
-       
-       byte[][] iplist = InetAddress.getHostByName(hostname.getBytes());
-       
-       addresses = new InetAddress[iplist.length];
-       
-       for (int i = 0; i < iplist.length; i++) {
-           addresses[i] = new InetAddress(iplist[i], hostname);
-       }
-       return addresses;
-    }
-
-    public static native byte[][] getHostByName(byte[] hostname);
-}