61 |
System.loadLibrary("javanet"); |
System.loadLibrary("javanet"); |
62 |
} |
} |
63 |
|
|
64 |
|
/** |
65 |
|
* Returns a Vector of InetAddresses. The returned value will be |
66 |
|
* 'condensed', meaning that all elements with the same interface |
67 |
|
* name will be collapesed into one InetAddress for that name |
68 |
|
* containing all addresses before the returning the result to the |
69 |
|
* user. This means the native method can be implemented in a naive |
70 |
|
* way mapping each address/interface to a name even if that means |
71 |
|
* that the Vector contains multiple InetAddresses with the same |
72 |
|
* interface name. |
73 |
|
*/ |
74 |
public static native Vector getInterfaces() |
public static native Vector getInterfaces() |
75 |
throws SocketException; |
throws SocketException; |
76 |
} |
} |