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 |
*/ |
*/ |
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 |
{ |
{ |
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 |
*/ |
*/ |
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 |
{ |
{ |
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 |
*/ |
*/ |