diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-20 17:59:39 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-20 17:59:39 +0000 |
commit | a7419e4d802bc8870af9e8cea4abe83b776b6aa1 (patch) | |
tree | 87aaec24a3cb254640eb70e3b6337644c277b1d6 /libjava/java/net | |
parent | 6fb33aa006ad25bb36d2ebec2ae2de101c63fed6 (diff) | |
download | gcc-a7419e4d802bc8870af9e8cea4abe83b776b6aa1.tar.gz |
2004-03-20 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java
(getLocalHostname): Added javadoc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79751 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/net')
-rw-r--r-- | libjava/java/net/InetAddress.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libjava/java/net/InetAddress.java b/libjava/java/net/InetAddress.java index e5f6ba3a8a1..126348b412e 100644 --- a/libjava/java/net/InetAddress.java +++ b/libjava/java/net/InetAddress.java @@ -1,5 +1,5 @@ /* 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. @@ -662,6 +662,14 @@ public class InetAddress implements Serializable 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(); /** |