InternetAddress class

An internet address.

An internet address.

This object holds an internet address. If this internet address is the result of a DNS lookup, the address also holds the hostname used to make the lookup. An Internet address combined with a port number represents an endpoint to which a socket can connect or a listening socket can bind.

Constructors

InternetAddress ( String address )
Creates a new InternetAddress from a numeric address.

Static Properties

LOOPBACK_IP_V4 InternetAddress
read-only
LOOPBACK_IP_V6 InternetAddress
read-only
ANY_IP_V4 InternetAddress
read-only
ANY_IP_V6 InternetAddress
read-only

Static Methods

lookup ( String host, {InternetAddressType type: InternetAddressType.ANY} ) → Future<List<InternetAddress>>
Lookup a host, returning a Future of a list of InternetAddresss. If type is InternetAddressType.ANY, it will lookup both IP version 4 (IPv4) and IP version 6 (IPv6) addresses. If type is eithe...

Instance Properties

type InternetAddressType
read/write
The type of the InternetAddress specified what IP protocol.
address String
read-only
host String
read-only
rawAddress List<int>
read-only
isLoopback bool
read-only
isLinkLocal bool
read-only
isMulticast bool
read-only

Instance Methods

reverse ( ) → Future<InternetAddress>
Perform a reverse dns lookup on the address, creating a new InternetAddress where the host field set to the result.