Initializer

init(_:_:)

Initializes an IPv6 address with data.

Declaration

init?(_ rawValue: Data, _ interface: NWInterface? = nil)

Discussion

The provided data is expected to be an IPv6 address of 16 bytes.

Relationships

From Protocol

See Also

Creating Addresses

init?(String)

Initializes an IPv6 address with a string.

var asIPv4: IPv4Address?

Extracts the IPv4 address contained within the IPv6 address, if the IPv6 address is an IPv4-mapped or IPv4-compatible address.