Packageflash.net
Classpublic class NetworkInterface
InheritanceNetworkInterface Inheritance Object

Language version: ActionScript 3.0
Runtime version: AIR 2

The NetworkInterface class describes a network interface.

You can get a list of network interfaces by calling the findInterfaces() method of a NetworkInfo object.

See also

NetworkInfo
InterfaceAddress


Public Properties
 PropertyDefined by
  active : Boolean
Reports whether this interface is active.
NetworkInterface
  addresses : Vector.<InterfaceAddress>
The list of the addresses bound to this network interface.
NetworkInterface
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  displayName : String
The display name of this network interface.
NetworkInterface
  hardwareAddress : String
The hardware address of this network interface.
NetworkInterface
  mtu : int
The maximum transmission unit (MTU) of this network interface.
NetworkInterface
  name : String
The name of this network interface.
NetworkInterface
  parent : NetworkInterface
The NetworkInterface object representing the parent interface (if this interface has a parent).
NetworkInterface
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  subInterfaces : Vector.<NetworkInterface>
The list of subinterfaces attached to this network interface.
NetworkInterface
Public Methods
 MethodDefined by
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property detail
activeproperty
active:Boolean  [read-write]

Language version: ActionScript 3.0
Runtime version: AIR 2

Reports whether this interface is active.

Implementation
    public function get active():Boolean
    public function set active(value:Boolean):void
addressesproperty 
addresses:Vector.<InterfaceAddress>  [read-write]

Language version: ActionScript 3.0
Runtime version: AIR 2

The list of the addresses bound to this network interface.

Implementation
    public function get addresses():Vector.<InterfaceAddress>
    public function set addresses(value:Vector.<InterfaceAddress>):void
displayNameproperty 
displayName:String  [read-write]

Language version: ActionScript 3.0
Runtime version: AIR 2

The display name of this network interface.

Implementation
    public function get displayName():String
    public function set displayName(value:String):void
hardwareAddressproperty 
hardwareAddress:String  [read-write]

Language version: ActionScript 3.0
Runtime version: AIR 2

The hardware address of this network interface.

The hardware address is typically the Media Access Control (MAC) address of the network adapter or interface card.

Implementation
    public function get hardwareAddress():String
    public function set hardwareAddress(value:String):void
mtuproperty 
mtu:int  [read-write]

Language version: ActionScript 3.0
Runtime version: AIR 2

The maximum transmission unit (MTU) of this network interface.

If the mtu value is reported as -1, then the actual MTU is unknown.

Implementation
    public function get mtu():int
    public function set mtu(value:int):void
nameproperty 
name:String  [read-write]

Language version: ActionScript 3.0
Runtime version: AIR 2

The name of this network interface.

Implementation
    public function get name():String
    public function set name(value:String):void
parentproperty 
parent:NetworkInterface  [read-write]

Language version: ActionScript 3.0
Runtime version: AIR 2

The NetworkInterface object representing the parent interface (if this interface has a parent).

This interface could have a parent if it is a subinterface. The parent property is null if this interface has no parent.

Implementation
    public function get parent():NetworkInterface
    public function set parent(value:NetworkInterface):void
subInterfacesproperty 
subInterfaces:Vector.<NetworkInterface>  [read-write]

Language version: ActionScript 3.0
Runtime version: AIR 2

The list of subinterfaces attached to this network interface.

Subinterfaces are often virtual interfaces. The subInterfaces property is null if this interface has no subinterfaces.

Implementation
    public function get subInterfaces():Vector.<NetworkInterface>
    public function set subInterfaces(value:Vector.<NetworkInterface>):void