Spec-Zone .ru
спецификации, руководства, описания, API

Java™ Platform
Standard Ed. 6

Uses of Class
java.net.NetworkInterface

Packages that use NetworkInterface
java.net Provides the classes for implementing networking applications. 
 

Uses of NetworkInterface in java.net
 

Methods in java.net that return NetworkInterface
static NetworkInterface NetworkInterface.getByInetAddress(InetAddress addr)
          Convenience method to search for a network interface that has the specified Internet Protocol (IP) address bound to it.
static NetworkInterface NetworkInterface.getByName(String name)
          Searches for the network interface with the specified name.
 NetworkInterface MulticastSocket.getNetworkInterface()
          Get the multicast network interface set.
 NetworkInterface NetworkInterface.getParent()
          Returns the parent NetworkInterface of this interface if this is a subinterface, or null if it is a physical (non virtual) interface or has no parent.
 NetworkInterface Inet6Address.getScopedInterface()
          Returns the scoped interface, if this instance was created with with a scoped interface.
 

Methods in java.net that return types with arguments of type NetworkInterface
static Enumeration<NetworkInterface> NetworkInterface.getNetworkInterfaces()
          Returns all the interfaces on this machine.
 Enumeration<NetworkInterface> NetworkInterface.getSubInterfaces()
          Get an Enumeration with all the subinterfaces (also known as virtual interfaces) attached to this network interface.
 

Methods in java.net with parameters of type NetworkInterface
static Inet6Address Inet6Address.getByAddress(String host, byte[] addr, NetworkInterface nif)
          Create an Inet6Address in the exact manner of InetAddress.getByAddress(String,byte[]) except that the IPv6 scope_id is set to the value corresponding to the given interface for the address type specified in addr.
 boolean InetAddress.isReachable(NetworkInterface netif, int ttl, int timeout)
          Test whether that address is reachable.
 void MulticastSocket.joinGroup(SocketAddress mcastaddr, NetworkInterface netIf)
          Joins the specified multicast group at the specified interface.
protected abstract  void DatagramSocketImpl.joinGroup(SocketAddress mcastaddr, NetworkInterface netIf)
          Join the multicast group.
 void MulticastSocket.leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf)
          Leave a multicast group on a specified local interface.
protected abstract  void DatagramSocketImpl.leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf)
          Leave the multicast group.
 void MulticastSocket.setNetworkInterface(NetworkInterface netIf)
          Specify the network interface for outgoing multicast datagrams sent on this socket.
 


Java™ Platform
Standard Ed. 6

Submit a bug or feature
For further API reference and developer documentation, see Java SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

free hit counter