Initializer

init(addresses:subnetMasks:)

Initialize the NEIPv4Settings object.

Declaration

init(addresses: [String], subnetMasks: [String])

Parameters

addresses

An array of IPv4 address strings. These IPv4 addresses will be assigned to the tunnel’s TUN interface.

subnetMasks

An array of IPv4 network mask strings. Each mask in this array is combined with the IP address in the corresponding index in addresses to specify an IPv4 network that the TUN interface is (virtually) connected to.

Return Value

The initialized NEIPv4Settings object.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software