Package | Description |
---|---|
java.net |
Modifier and Type | Method and Description |
---|---|
static NetworkInterface |
NetworkInterface.getByIndex(int index)
Get a network interface given its index.
|
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 |
Inet6Address.getScopedInterface()
Returns the scoped interface, if this instance was created with with a scoped interface.
|
Modifier and Type | Method and Description |
---|---|
static Enumeration<NetworkInterface> |
NetworkInterface.getNetworkInterfaces()
Returns all the interfaces on this machine.
|
Modifier and Type | Method and Description |
---|---|
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 . |
void |
MulticastSocket.joinGroup(SocketAddress mcastaddr,
NetworkInterface netIf)
Joins the specified multicast group at the specified interface.
|
void |
MulticastSocket.leaveGroup(SocketAddress mcastaddr,
NetworkInterface netIf)
Leave a multicast group on a specified local interface.
|
void |
MulticastSocket.setNetworkInterface(NetworkInterface netIf)
Specify the network interface for outgoing multicast datagrams sent on this socket.
|