Initializer

init(_:)

Initializes an IPv6 address with a string.

Declaration

init?(_ string: String)

Discussion

The provided string will be interpreted as an IPv6 address. If the string cannot be interpreted as an IPv6 address, the initialization will fail.

Relationships

From Protocol

See Also

Creating Addresses

init?(Data, NWInterface?)

Initializes an IPv6 address with data.

var asIPv4: IPv4Address?

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