/libcore/ojluni/src/main/java/java/net/ |
DefaultInterface.java | 38 static NetworkInterface getDefault() {
|
NetworkInterface.java | 58 public final class NetworkInterface { 64 private List<NetworkInterface> childs; 65 private NetworkInterface parent = null; 68 private static final NetworkInterface defaultInterface; 81 * Returns an NetworkInterface object with index set to 0 and name to null. 86 NetworkInterface() { 89 NetworkInterface(String name, int index, InetAddress[] addrs) { 205 public Enumeration<NetworkInterface> getSubInterfaces() { 210 * Returns the parent NetworkInterface of this interface if this is 214 * @return The {@code NetworkInterface} this interface is attached to [all...] |
InetAddressImpl.java | 66 boolean isReachable(InetAddress addr, int timeout, NetworkInterface netif,
|
StandardSocketOptions.java | 256 * <p> The value of this socket option is a {@link NetworkInterface} that 273 public static final SocketOption<NetworkInterface> IP_MULTICAST_IF = 274 new StdSocketOption<NetworkInterface>("IP_MULTICAST_IF", NetworkInterface.class);
|
MulticastSocket.java | 317 NetworkInterface defaultInterface = NetworkInterface.getDefault(); 373 * {@link MulticastSocket#setNetworkInterface(NetworkInterface)} 385 public void joinGroup(SocketAddress mcastaddr, NetworkInterface netIf) 421 * {@link MulticastSocket#setNetworkInterface(NetworkInterface)} 432 public void leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf) 519 NetworkInterface ni = NetworkInterface.getByInetAddress(ia); 550 public void setNetworkInterface(NetworkInterface netIf) 565 * @return the multicast {@code NetworkInterface} currently se [all...] |
AbstractPlainDatagramSocketImpl.java | 198 protected void joinGroup(SocketAddress mcastaddr, NetworkInterface netIf) 205 protected abstract void join(InetAddress inetaddr, NetworkInterface netIf) 216 protected void leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf) 223 protected abstract void leave(InetAddress inetaddr, NetworkInterface netIf) 305 if (o == null || !(o instanceof Integer || o instanceof NetworkInterface)) 307 if (o instanceof NetworkInterface) { 308 o = new Integer(((NetworkInterface)o).getIndex()); 366 /** Return the first address bound to NetworkInterface with given ID. 371 NetworkInterface networkInterface = NetworkInterface.getByIndex(niIndex) [all...] |
Inet6Address.java | 166 * {@link java.net.NetworkInterface#getName()} for the particular interface in 169 * NetworkInterface.</li></ol> 172 * Inet6Address instances returned from the NetworkInterface class. This can be 197 NetworkInterface ifname, boolean scope_ifname_set) 228 NetworkInterface scope_ifname; // null 252 void init(byte addr[], NetworkInterface nif) 402 Inet6Address (String hostName, byte addr[], NetworkInterface nif) throws UnknownHostException { 433 NetworkInterface nif) 486 NetworkInterface nif = NetworkInterface.getByName (ifname) [all...] |
/libcore/ojluni/src/main/java/java/nio/channels/ |
MulticastChannel.java | 29 import java.net.NetworkInterface; 54 * <p> The {@link #join(InetAddress,NetworkInterface)} method is used to 57 * {@link NetworkInterface interfaces}. Membership is dropped by invoking the {@link 63 * <p> The {@link #join(InetAddress,NetworkInterface,InetAddress)} method 107 * NetworkInterface ni = NetworkInterface.getByName("hme0"); 180 MembershipKey join(InetAddress group, NetworkInterface interf) 228 MembershipKey join(InetAddress group, NetworkInterface interf, InetAddress source)
|
MembershipKey.java | 29 import java.net.NetworkInterface; 167 public abstract NetworkInterface networkInterface();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
NetworkInterfaceTest.java | 22 import java.net.NetworkInterface; 31 Enumeration<NetworkInterface> theInterfaces = null; 37 private NetworkInterface networkInterface1 = null; 39 private NetworkInterface sameAsNetworkInterface1 = null; 41 private NetworkInterface networkInterface2 = null; 44 * java.net.NetworkInterface#getName() 62 * java.net.NetworkInterface#getInetAddresses() 160 "validate we cannot get the NetworkInterface with an address for which we have no privs", 161 NetworkInterface 170 "validate we cannot get the NetworkInterface with an address fro which we have no privs" [all...] |
InterfaceAddressTest.java | 24 import java.net.NetworkInterface; 126 Enumeration<NetworkInterface> netifs = NetworkInterface 128 NetworkInterface theInterface = null; 149 NetworkInterface anotherNetworkInter = NetworkInterface
|
DatagramSocketImplTest.java | 25 import java.net.NetworkInterface; 101 protected void joinGroup(SocketAddress addr, NetworkInterface netInterface) 112 protected void leaveGroup(SocketAddress addr, NetworkInterface netInterface)
|
MulticastSocketTest.java | 28 import java.net.NetworkInterface; 61 private NetworkInterface loopbackInterface; 62 private NetworkInterface ipv4NetworkInterface; 63 private NetworkInterface ipv6NetworkInterface; 70 loopbackInterface = NetworkInterface.getByInetAddress(InetAddress.getLoopbackAddress()); 75 Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); 88 NetworkInterface nextInterface = interfaces.nextElement(); 154 ipv4NetworkInterface, NetworkInterface.getByInetAddress(mss.getInterface())); 166 NetworkInterface theInterface = mss.getNetworkInterface() [all...] |
InetAddressTest.java | 25 import java.net.NetworkInterface; 337 Enumeration<NetworkInterface> nif = NetworkInterface.getNetworkInterfaces(); 338 NetworkInterface netif; 367 NetworkInterface loopbackInterface = null; 369 Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces(); 372 NetworkInterface networkInterface = networkInterfaces.nextElement(); 373 Enumeration<InetAddress> addresses = networkInterface.getInetAddresses() [all...] |
/external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/net/ |
UnixNetworkInterfaceTest.java | 19 import java.net.NetworkInterface; 29 private Enumeration<NetworkInterface> netifs = null; 34 * @tests java.net.NetworkInterface#isUp() 39 NetworkInterface netif = netifs.nextElement(); 59 * @tests java.net.NetworkInterface#supportsMulticast() 64 NetworkInterface netif = netifs.nextElement(); 86 * @tests java.net.NetworkInterface#getHardwareAddress() 91 NetworkInterface netif = netifs.nextElement(); 117 * @tests java.net.NetworkInterface#getMTU() 122 NetworkInterface netif = netifs.nextElement() [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_NetworkInterface.java | 20 import java.net.NetworkInterface; 29 public static boolean useInterface(NetworkInterface theInterface) {
|
/libcore/luni/src/test/java/libcore/java/net/ |
NetworkInterfaceTest.java | 29 import java.net.NetworkInterface; 38 import static java.net.NetworkInterface.getNetworkInterfaces; 44 NetworkInterface lo = NetworkInterface.getByName("lo"); 62 NetworkInterface.collectIpv6Addresses("wlan0", 1, addresses, 78 NetworkInterface.collectIpv6Addresses("wlan0", 1, addresses, 85 for (NetworkInterface nif : Collections.list(getNetworkInterfaces())) { 86 assertEquals(nif, NetworkInterface.getByName(nif.getName())); 104 NetworkInterface lo = NetworkInterface.getByName("lo") [all...] |
/external/jmdns/src/javax/jmdns/impl/ |
NetworkTopologyDiscoveryImpl.java | 8 import java.net.NetworkInterface; 37 isUp = NetworkInterface.class.getMethod("isUp", (Class<?>[]) null); 45 supportsMulticast = NetworkInterface.class.getMethod("supportsMulticast", (Class<?>[]) null); 62 for (Enumeration<NetworkInterface> nifs = NetworkInterface.getNetworkInterfaces(); nifs.hasMoreElements();) { 63 NetworkInterface nif = nifs.nextElement(); 67 logger.finest("Found NetworkInterface/InetAddress: " + nif + " -- " + interfaceAddress); 82 * @see javax.jmdns.JmmDNS.NetworkTopologyDiscovery#useInetAddress(java.net.NetworkInterface, java.net.InetAddress) 85 public boolean useInetAddress(NetworkInterface networkInterface, InetAddress interfaceAddress) [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
MembershipKeyImpl.java | 30 import java.net.NetworkInterface; 43 private final NetworkInterface interf; 57 NetworkInterface interf, 76 NetworkInterface interf, 111 NetworkInterface interf, 161 public NetworkInterface networkInterface() {
|
MembershipRegistry.java | 30 import java.net.NetworkInterface; 51 MembershipKey checkMembership(InetAddress group, NetworkInterface interf, 58 if (key.networkInterface().equals(interf)) {
|
/external/jmdns/src/javax/jmdns/ |
NetworkTopologyDiscovery.java | 4 import java.net.NetworkInterface; 24 * public boolean useInetAddress(NetworkInterface networkInterface, InetAddress interfaceAddress) { 144 * @param networkInterface 148 public boolean useInetAddress(NetworkInterface networkInterface, InetAddress interfaceAddress);
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
DatagramChannelMulticastTest.java | 27 import java.net.NetworkInterface; 76 private NetworkInterface ipv4NetworkInterface; 77 private NetworkInterface ipv6NetworkInterface; 78 private NetworkInterface loopbackInterface; 86 loopbackInterface = NetworkInterface.getByInetAddress(InetAddress.getLoopbackAddress()); 91 Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); 103 NetworkInterface nextInterface = interfaces.nextElement(); 229 NetworkInterface networkInterface) throws Exception [all...] |
ServerSocketChannelTest.java | 22 import java.net.NetworkInterface; 95 Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); 97 NetworkInterface nic = interfaces.nextElement(); 126 Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); 128 NetworkInterface nic = interfaces.nextElement();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
MockDatagramChannel.java | 23 import java.net.NetworkInterface; 120 public MembershipKey join(InetAddress group, NetworkInterface interf) { 125 public MembershipKey join(InetAddress group, NetworkInterface interf, InetAddress source)
|
/external/sl4a/Utils/src/com/googlecode/android_scripting/ |
SimpleServer.java | 32 import java.net.NetworkInterface; 146 Enumeration<NetworkInterface> nets = NetworkInterface.getNetworkInterfaces(); 147 for (NetworkInterface netint : Collections.list(nets)) { 169 Enumeration<NetworkInterface> nets = NetworkInterface.getNetworkInterfaces(); 170 for (NetworkInterface netint : Collections.list(nets)) {
|