Package | flash.net |
Class | public class InterfaceAddress |
Inheritance | InterfaceAddress Object |
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 2 |
Related API Elements
Public Properties
Property | Defined By | ||
---|---|---|---|
address : String
The Internet Protocol (IP) address. | InterfaceAddress | ||
broadcast : String
The broadcast address of the local network segment. | InterfaceAddress | ||
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
ipVersion : String
The IP address type (IPv4 or IPv6). | InterfaceAddress | ||
prefixLength : int
The prefix length for this address. | InterfaceAddress |
Public Methods
Property Detail
address | property |
broadcast | property |
ipVersion | property |
prefixLength | property |
prefixLength:int
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 2 |
The prefix length for this address.
For IPv4 addresses, this is the subnet mask. Examples of the prefix length for IPv4 values include: 8 (255.0.0.0), 16 (255.255.0.0) and 24 (255.255.255.0). Example IPv6 prefix length values include 128 (::1/128) and 32 (2001:db8::/32)
Note: If the prefix length for this address is not available, the value of
prefixLength
is -1
. A prefix value is not always returned by
the network implementation of a specific client computer.
Implementation
public function get prefixLength():int
public function set prefixLength(value:int):void
Thu Dec 6 2018, 01:12 PM -08:00