Commit 7f5773c6 by Michael Koch Committed by Michael Koch

2004-03-20 Michael Koch <konqueror@gmx.de>

	* java/net/InetAddress.java
	(getLocalHostname): Added javadoc.

From-SVN: r79751
parent 245f1bfa
2004-03-20 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java
(getLocalHostname): Added javadoc.
2004-03-19 Per Bothner <per@bothner.com> 2004-03-19 Per Bothner <per@bothner.com>
* configure.in: FILE variable overrides FLATFORM when linking * configure.in: FILE variable overrides FLATFORM when linking
......
/* InetAddress.java -- Class to model an Internet address /* InetAddress.java -- Class to model an Internet address
Copyright (C) 1998, 1999, 2002 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -662,6 +662,14 @@ public class InetAddress implements Serializable ...@@ -662,6 +662,14 @@ public class InetAddress implements Serializable
return lookup (hostname, null, true); return lookup (hostname, null, true);
} }
/**
* This native method looks up the hostname of the local machine
* we are on. If the actual hostname cannot be determined, then the
* value "localhost" will be used. This native method wrappers the
* "gethostname" function.
*
* @return The local hostname.
*/
private static native String getLocalHostname(); private static native String getLocalHostname();
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment