WASIPreview3IpAddress class final

An IPv4 or IPv6 address used by WASI 0.3 sockets.

Constructors

WASIPreview3IpAddress.ipv4(int a, int b, int c, int d)
Creates an IPv4 address.
WASIPreview3IpAddress.ipv6(int a, int b, int c, int d, int e, int f, int g, int h)
Creates an IPv6 address from eight 16-bit segments.

Properties

family → WASIPreview3IpAddressFamily
Address family.
final
hashCode → int
The hash code for this object.
no setteroverride
host → String
Text accepted by Dart networking APIs.
no setter
parts → List<int>
Four IPv4 octets or eight IPv6 16-bit segments.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

parse(String value) → WASIPreview3IpAddress?
Parses an IPv4 or IPv6 literal without performing DNS resolution.