/[classpath]/inetlib/source/gnu/inet/util/GetLocalHostAction.java
ViewVC logotype

Diff of /inetlib/source/gnu/inet/util/GetLocalHostAction.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dog, Thu Oct 21 15:21:55 2004 UTC revision 1.3 by dog, Thu Nov 25 22:15:05 2004 UTC
# Line 1  Line 1 
1  /*  /*
2   * $Id$   * GetLocalHostAction.java
3   * Copyright (C) 2003 The Free Software Foundation   * Copyright (C) 2003 The Free Software Foundation
4   *   *
5   * This file is part of GNU inetlib, a library.   * This file is part of GNU inetlib, a library.
# Line 48  import java.security.PrivilegedAction; Line 48  import java.security.PrivilegedAction;
48   * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>   * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>
49   */   */
50  public class GetLocalHostAction  public class GetLocalHostAction
51  implements PrivilegedAction    implements PrivilegedAction
52  {  {
53    
54    public Object run ()    public Object run()
55    {    {
56      try      try
57        {        {
58          return InetAddress.getLocalHost ();          return InetAddress.getLocalHost();
59        }        }
60      catch (UnknownHostException e)      catch (UnknownHostException e)
61        {        {
# Line 64  implements PrivilegedAction Line 64  implements PrivilegedAction
64    }    }
65        
66  }  }
67    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26