|
Working with Network Interfaces
in Java |
|
Prof. David Bernstein
|
| Computer Science Department |
| bernstdh@jmu.edu |
java.net.NetworkInterface Class
NetworkInterface Objects:
NetworkInterface.getNetworkInterfaces()
methodgetSubinterface() and getParent()
retrieve subinterfaces (a.k.a., virtual interfaces) and
parent interfaces respectively
getHardwareAddress() returns the hardware
(e.g., MAC for Ethernet) addressgetMTU() returns the maximum transmision unitisLoopback()
isUp()
isVirtual()
supportsMulticast()