AZSIPRange Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | AZSIPRange.h AZSIPRange.m |
Overview
A range of IPv4 addresses. Contains a minumum IP, maximum IP, and a string representing the range.
ipMinimum
The minimum IP address for this range, inclusive.
@property (readonly) struct in_addr ipMinimumDiscussion
The minimum IP address for this range, inclusive.
Declared In
AZSIPRange.h
ipMaximum
The maximum IP address for this range, inclusive.
@property (readonly) struct in_addr ipMaximumDiscussion
The maximum IP address for this range, inclusive.
Declared In
AZSIPRange.h
rangeString
The single IP address of range of IP addresses, represented as a string.
@property (strong, readonly) NSString *rangeStringDiscussion
The single IP address of range of IP addresses, represented as a string.
Declared In
AZSIPRange.h
– initWithSingleIPString:error:
Creates an IP range using the specified single IP address represented by the given string. The address must be IPv4.
- (instancetype)initWithSingleIPString:(NSString *)ipString error:(NSError *__autoreleasing *)errorParameters
ipString |
The single IP address. |
|---|---|
error |
A pointer to a NSError*, to be set in the event of failure. |
Return Value
The newly initialized IPRange or nil if the given string is invalid.
Discussion
Creates an IP range using the specified single IP address represented by the given string. The address must be IPv4.
Declared In
AZSIPRange.h
– initWithMinIPString:maxIPString:error:
Creates an IP range encompassing the specified minimum and maximum IP addresses represented by the given strings. The addresses must be IPv4.
- (instancetype)initWithMinIPString:(NSString *)minimumString maxIPString:(NSString *)maximumString error:(NSError *__autoreleasing *)errorParameters
minimumString |
The minimum IP address. |
|---|---|
maximumString |
The maximum IP address. |
error |
A pointer to a NSError*, to be set in the event of failure. |
Return Value
The newly initialized IPRange or nil if the given string is invalid.
Discussion
Creates an IP range encompassing the specified minimum and maximum IP addresses represented by the given strings. The addresses must be IPv4.
Declared In
AZSIPRange.h
– initWithSingleIP:
Creates an IP range using the specified single IP address. The address must be IPv4.
- (instancetype)initWithSingleIP:(struct in_addr)ipParameters
ip |
The single IP address. |
|---|
Return Value
The newly initialized IPRange.
Discussion
Creates an IP range using the specified single IP address. The address must be IPv4.
Declared In
AZSIPRange.h
– initWithMinIP:maxIP:
Creates an IP range encompassing the specified minimum and maximum IP addresses. The addresses must be IPv4.
- (instancetype)initWithMinIP:(struct in_addr)minimum maxIP:(struct in_addr)maximumParameters
minimum |
The minimum IP address. |
|---|---|
maximum |
The maximum IP address. |
Return Value
The newly initialized IPRange.
Discussion
Creates an IP range encompassing the specified minimum and maximum IP addresses. The addresses must be IPv4.
Declared In
AZSIPRange.h