|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetInterface<T extends NetInterfaceAddress>
NetworkInterface represent a network interface of the system. Its APIs are purposefully modeled after the java.net.NetworkInterface. Compared to the standard Java API, this class provides additional information such as the NetworkInterfaceType, whether the interface is provided to the system through a USB Adapter, and additional low-level characteristics of the interface.
Method Summary | |
---|---|
String |
getDriver()
The driver handling the device. |
String |
getDriverVersion()
The version of the driver handling the device. |
String |
getFirmwareVersion()
The firmware version for the device. |
byte[] |
getHardwareAddress()
Returns the hardware address (usually MAC) of the interface if it has one. |
int |
getMTU()
Returns the Maximum Transmission Unit (MTU) of this interface - Design speed of the device, in megabits/second (Mb/s). |
String |
getName()
Returns the name of this NetworkInterface. |
List<T> |
getNetInterfaceAddresses()
Returns a List of all InterfaceAddresses of this network interface. |
NetInterfaceState |
getState()
The current state of the device. |
NetInterfaceType |
getType()
Returns the type of this NetworkInterface. |
UsbDevice |
getUsbDevice()
Returns the UsbDevice which provided this NetworkInterface to the system if any. |
boolean |
isAutoConnect()
Returns whether a network interface will auto connect. |
boolean |
isLoopback()
Returns whether a network interface is a loopback interface. |
boolean |
isPointToPoint()
Returns whether a network interface is a point to point interface. |
boolean |
isUp()
Returns whether a network interface is up and running. |
boolean |
isVirtual()
Returns whether this interface is a virtual interface (also called subinterface). |
boolean |
supportsMulticast()
Returns whether a network interface supports multicasting or not. |
Method Detail |
---|
String getName()
NetInterfaceType getType()
String getDriver()
String getDriverVersion()
String getFirmwareVersion()
NetInterfaceState getState()
byte[] getHardwareAddress()
List<T> getNetInterfaceAddresses()
boolean isLoopback()
boolean isPointToPoint()
boolean isVirtual()
boolean supportsMulticast()
boolean isUp()
boolean isAutoConnect()
int getMTU()
UsbDevice getUsbDevice()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |