Instance Method

initWithAddresses:subnetMasks:

Initialize the NEIPv4Settings object.

Declaration

- (instancetype)initWithAddresses:(NSArray<NSString *> *)addresses subnetMasks:(NSArray<NSString *> *)subnetMasks;

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.