BUStaticAddressing Class Reference

Inherits from BUNetworkAddressing : NSObject
Declared in BUStaticAddressing.h

Overview

Static addressing information for an imp

The initializer is failable and may return nil if the strings are not valid IP addresses Strings can be validated using [BUNetworkManager isValidIpAddress:@“String”]

– initWithIp:netmask:gateway:dns1:

Provide static addressing information with a single DNS server

All strings must be valid IPv4 addresses of form xxx.xxx.xxx.xxx

- (_Nullable instancetype)initWithIp:(nonnull NSString *)ip netmask:(nonnull NSString *)netmask gateway:(nonnull NSString *)gateway dns1:(nonnull NSString *)dns1

Parameters

ip

IP address desired for the imp

netmask

Netmask desired for the imp

gateway

Gateway desired for the imp

dns1

DNS address desired for the imp

Return Value

nil if any strings are not valid IPs, a BUStaticAddressing object if data is valid

Declared In

BUStaticAddressing.h

– initWithIp:netmask:gateway:dns1:dns2:

Provide static addressing information with two DNS servers

All strings must be valid IPv4 addresses of form xxx.xxx.xxx.xxx

- (_Nullable instancetype)initWithIp:(nonnull NSString *)ip netmask:(nonnull NSString *)netmask gateway:(nonnull NSString *)gateway dns1:(nonnull NSString *)dns1 dns2:(nullable NSString *)dns2

Parameters

ip

IP address desired for the imp

netmask

Netmask desired for the imp

gateway

Gateway desired for the imp

dns1

DNS address desired for the imp

dns2

Second DNS address desired for the imp

Return Value

nil if any strings are not valid IPs. A BUStaticAddressing object if data is valid.

Declared In

BUStaticAddressing.h

  ip

IP address desired for the imp

@property (strong, nonatomic, nonnull, readonly) NSString *ip

Declared In

BUStaticAddressing.h

  netmask

Netmask desired for the imp

@property (strong, nonatomic, nonnull, readonly) NSString *netmask

Declared In

BUStaticAddressing.h

  gateway

Gateway desired for the imp

@property (strong, nonatomic, nonnull, readonly) NSString *gateway

Declared In

BUStaticAddressing.h

  dns1

DNS address desired for the imp

@property (strong, nonatomic, nonnull, readonly) NSString *dns1

Declared In

BUStaticAddressing.h

  dns2

Second DNS address desired for the imp, or nil if not set

@property (strong, nonatomic, nullable, readonly) NSString *dns2

Declared In

BUStaticAddressing.h