An IP network. More...
Instance Methods | |
(NSString *) | - address |
Gets the address. More... | |
(NSString *) | - description |
Returns a string that represents this instance. More... | |
(NSString *) | - mask |
Gets the mask. More... | |
(bool) | - matchesWithAddress: |
Checks if an address exists in this network. More... | |
(int) | - prefixLength |
Gets the prefix length. More... | |
Class Methods | |
(FMLiveSwitchIPNetwork *) | + parseWithCidr: |
Parses a CIDR. More... | |
(bool) | + tryParseWithCidr:network: |
Tries to parse a CIDR. More... | |
An IP network.
- (NSString*) address |
Gets the address.
- (NSString*) description |
Returns a string that represents this instance.
- (NSString*) mask |
Gets the mask.
- (bool) matchesWithAddress: | (NSString *) | address |
Checks if an address exists in this network.
address | The address. |
true
if the address exists in this network; otherwise, false
. + (FMLiveSwitchIPNetwork*) parseWithCidr: | (NSString *) | cidr |
Parses a CIDR.
cidr | The CIDR. |
- (int) prefixLength |
Gets the prefix length.
+ (bool) tryParseWithCidr: | (NSString *) | cidr | |
network: | (FMLiveSwitchIPNetwork **) | network | |
Tries to parse a CIDR.
cidr | The CIDR. |
network | The IP network. |
true
if successful; otherwise, false
.