Browse Source

Update Host.hx

Mark Knol 10 years ago
parent
commit
d0b11f8af8
1 changed files with 13 additions and 33 deletions
  1. 13 33
      std/python/_std/sys/net/Host.hx

+ 13 - 33
std/python/_std/sys/net/Host.hx

@@ -21,44 +21,24 @@
  */
  */
 package sys.net;
 package sys.net;
 
 
-/**
-	A given IP host name.
-**/
 class Host {
 class Host {
-
-	/**
-		The actual IP corresponding to the host.
-	**/
 	public var ip(default,null) : Int;
 	public var ip(default,null) : Int;
 
 
-	/**
-		Creates a new Host : the name can be an IP in the form "127.0.0.1" or an host name such as "google.com", in which case
-		the corresponding IP address is resolved using DNS. An exception occur if the host name could not be found.
-	**/
-    var name:String;
+	var name:String;
+	
 	public function new( name : String ) : Void {
 	public function new( name : String ) : Void {
-        this.name = name;
-    }
+		this.name = name;
+    	}
 
 
-	/**
-		Returns the IP representation of the host
-	**/
 	public function toString() : String {
 	public function toString() : String {
-        return name;
-    }
-
-	/**
-		Perform a reverse-DNS query to resolve a host name from an IP.
-	**/
+		return name;
+	}
+    
 	public function reverse() : String {
 	public function reverse() : String {
-        return "";
-    }
-
-	/**
-		Returns the local computer host name
-	**/
+        	return "";
+    	}
+    
 	public static function localhost() : String {
 	public static function localhost() : String {
-        return "";
-    }
-
-}
+        	return "";
+    	}
+}