/[classpath]/classpath/java/net/NetworkInterface.java
ViewVC logotype

Diff of /classpath/java/net/NetworkInterface.java

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

revision 1.4 by mkoch, Sun May 18 07:00:49 2003 UTC revision 1.5 by arenn, Sun May 25 18:03:51 2003 UTC
# Line 41  import java.util.Enumeration; Line 41  import java.util.Enumeration;
41  import java.util.Vector;  import java.util.Vector;
42    
43  /**  /**
44     * This class models a network interface on the host computer.  A network
45     * interface contains a name (typically associated with a specific
46     * hardware adapter) and a list of addresses that are bound to it.
47     * For example, an ethernet interface may be named "eth0" and have the
48     * address 192.168.1.101 assigned to it.
49     *
50   * @author Michael Koch <konqueror@gmx.de>   * @author Michael Koch <konqueror@gmx.de>
51   * @since 1.4   * @since 1.4
52   */   */
# Line 61  public final class NetworkInterface Line 67  public final class NetworkInterface
67      throws SocketException;      throws SocketException;
68    
69    /**    /**
70     *  Returns the name of the network interface     * Returns the name of the network interface
71       *
72       * @return The name of the interface.
73     */     */
74    public String getName ()    public String getName ()
75    {    {
# Line 73  public final class NetworkInterface Line 81  public final class NetworkInterface
81     *       *  
82     *  If a @see SecurityManager is available all addresses are checked     *  If a @see SecurityManager is available all addresses are checked
83     *  with @see SecurityManager::checkConnect() if they are available.     *  with @see SecurityManager::checkConnect() if they are available.
84     *  Only InetAddresses are returned where the security manager doesn't     *  Only <code>InetAddresses</code> are returned where the security manager
85     *  thrown an exception.     *  doesn't throw an exception.
86     *       *  
87     *  @return An enumeration of all addresses.     *  @return An enumeration of all addresses.
88     */     */
# Line 106  public final class NetworkInterface Line 114  public final class NetworkInterface
114    
115    /**    /**
116     *  Returns the display name of the interface     *  Returns the display name of the interface
117       *
118       *  @return The display name of the interface
119     */     */
120    public String getDisplayName ()    public String getDisplayName ()
121    {    {
# Line 168  public final class NetworkInterface Line 178  public final class NetworkInterface
178    }    }
179    
180    /**    /**
181     *  Return an Enumeration of all available network interfaces     *  Return an <code>Enumeration</code> of all available network interfaces
182     *     *
183     *  @exception SocketException If an error occurs     *  @exception SocketException If an error occurs
184     */     */

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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