Contents

init(_:_:)

Initializes an IP address with data.

Declaration

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

Discussion

The provided data is expected to be either an IPv4 address of 4 bytes or an IPv6 address of 16 bytes.

See Also

Creating Addresses