Java.Net.NetworkInterface Members

The members of Java.Net.NetworkInterface are listed below.

See Also: Inherited members from Java.Lang.Object

Public Properties

[read-only]
DisplayNamestring. Returns a human-readable name for this network interface.
[read-only]
Indexint. Returns the index for the network interface, or -1 if unknown.
[read-only]
InetAddressesJava.Util.IEnumeration. Returns an enumeration of the addresses bound to this network interface.
[read-only]
InterfaceAddressesIList<InterfaceAddress>. Returns a List of the InterfaceAddresses for this network interface.
[read-only]
IsLoopbackbool. Returns true if this network interface is a loopback interface.
[read-only]
IsPointToPointbool. Returns true if this network interface is a point-to-point interface.
[read-only]
IsUpbool. Returns true if this network interface is up.
[read-only]
IsVirtualbool. Returns true if this interface is a virtual interface (also called a sub-interface).
[read-only]
MTUint. Returns the Maximum Transmission Unit (MTU) of this interface.
[read-only]
Namestring. Returns the name of this network interface (such as "eth0" or "lo").
[read-only]
static
NetworkInterfacesJava.Util.IEnumeration. Gets a list of all network interfaces available on the local system or null if no interface is available.
[read-only]
ParentNetworkInterface. Returns the parent NetworkInterface of this interface if this is a sub-interface, or null if it's a physical (non virtual) interface.
[read-only]
SubInterfacesJava.Util.IEnumeration. Returns an enumeration of all the sub-interfaces of this network interface.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
GetByIndex(int) : NetworkInterface
Returns the NetworkInterface corresponding to the given interface index, or null if no interface has this index.
static
GetByInetAddress(InetAddress) : NetworkInterface
Returns the NetworkInterface corresponding to the given address, or null if no interface has this address.
static
GetByName(string) : NetworkInterface
Returns the NetworkInterface corresponding to the named network interface, or null if no interface has this name.
GetHardwareAddress() : byte[]
Returns the hardware address of the interface, if it has one, or null otherwise.
SupportsMulticast() : bool
Returns true if this network interface supports multicast.