|
Samond Classes Library 1.1.6-RELEASE build 132
|
IPv4 subnet mask representation class. More...
#import <SCSubnetMask.h>
IPv4 subnet mask representation class.
Class SCSubnetMask represents IPv4 subnet mask.
This class was introduced in version 1.0.4.
Class declares the following properties:
| - (void) copyMask: | (SCSubnetMask *) | mask |
Sets subnet mask using the specified existing subnet mask instance.
| mask | - source subnet mask instance |
| SCNetException | - incorrect source subnte mask instance detected |
| - (NSString *) description |
Returns subnet mask instance description.
| + (SCSubnetMask *) emptyMask |
Returns an empty subnet mask.
| + (SCUInteger) hostsClassA |
Returns a class A network hosts count.
| + (SCUInteger) hostsClassB |
Returns a class B network hosts count.
| + (SCUInteger) hostsClassC |
Returns a class C network hosts count.
| - (SCUInteger) hostsCount |
Returns hosts count for subnet with mask.
| + (SCUInteger) hostsSerialLink |
Returns a serial link subnet hosts count.
| - (id) init |
Initializes the empty subnet mask.
| - (id) initWithClassA |
Initializes the class A default subnet mask.
| - (id) initWithClassB |
Initializes the class B default subnet mask.
| - (id) initWithClassC |
Initializes the class C default subnet mask.
| - (id) initWithCount: | (SCUInteger) | count |
Inititializes the subnet mask using the specified hosts count.
| count | - required hosts count |
| SCNetException | - incorrect hosts count detected |
| - (id) initWithGlobal |
Initializes the global Internet subnet mask (all IPv4 addresses subnet).
| - (id) initWithHost |
Initializes the host subnet mask (255.255.255.255).
| - (id) initWithMask: | (SCSubnetMask *) | mask |
Initializes the subnet mask as copy of existing subnet mask instance.
| mask | - source subnet mask instance |
| SCNetException | - incorrect source subnet mask instance detected |
| - (id) initWithPrefix: | (NSString *) | prefix |
Initializes the subnet mask using the specified prefix.
| prefix | - prefix string |
| SCNetException | - incorrect prefix string detected |
| - (id) initWithPrefixLength: | (SCUByte) | length |
Initializes the subnet mask using the specified prefix length.
| length | - prefix length |
| SCNetException | - incorrect prefix length detected |
| - (id) initWithSerialLink |
Initializes the serial link subnet mask.
| - (id) initWithString: | (NSString *) | mask |
Initializes the subnet mask using the specified mask string.
| mask | - mask string |
| SCNetException | - incorrect mask string detected |
| - (id) initWithWildcard: | (NSString *) | wildcard |
Initializes the subnet mask using the specified wildcard mask string.
| wildcard | - wildcard mask string |
| SCNetException | - incorrect wildcard mask string detected |
| - (BOOL) isClassA |
Returns a Boolean value that indicates the mask is equal to Class A default subnet mask.
| - (BOOL) isClassB |
Returns a Boolean value that indicates the mask is equal to Class B default subnet mask.
| - (BOOL) isClassC |
Returns a Boolean value that indicates the mask is equal to Class C default subnet mask.
| - (BOOL) isClassfull |
Returns a Boolean value that indicates the mask is classfull.
| - (BOOL) isEqual: | (id) | mask |
Returns a Boolean value that indicates the mask is equal to other instance.
| mask | - the instance witch to compare the receiver |
Reimplemented from SCObject.
| - (BOOL) isEqualToLength: | (SCUByte) | length |
Returns a Boolean value that indicates the mask is equal to subnet prefix length.
| length | - subnet prefix length |
| SCNetException | - incorrect subnet prefix length detected |
| - (BOOL) isEqualToMask: | (SCSubnetMask *) | mask |
Returns a Boolean value that indicates the mask is equal to other mask.
| mask | - the mask witch to compare the receiver |
| SCNetException | - incorrect subnet mask detected |
| - (BOOL) isEqualToPrefix: | (NSString *) | prefix |
Returns a Boolean value that indicates the mask is equal to subnet with the specified prefix.
| prefix | - string with subnet prefix |
| SCNetException | - incorrect subnet prefix detected |
| - (BOOL) isEqualToString: | (NSString *) | mask |
Returns a Boolean value that indicates the mask is equal to text representation of other mask.
| mask | - the string with text representation of the mask |
| SCNetException | - incorrect subnet mask string detected |
| - (BOOL) isEqualToWildcard: | (NSString *) | wildcard |
Returns a Boolean value that indicates the mask is equal to wildcard mask.
| wildcard | - string with the wildcard mask |
| SCNetException | - incorrect wildcard mask string detected |
| - (BOOL) isGlobalMask |
Returns a Boolean value that indicates the mask is equal to global Internet subnet mask.
| - (BOOL) isHostMask |
Returns a Boolean value that indicates the mask is equal to host subnet mask.
| - (BOOL) isRegularMask |
Returns a Boolean value that indicates the mask is equal to reqular subnet mask.
| - (BOOL) isSerialLink |
Returns a Boolean value that indicates the mask is equal to serial link subnet mask.
| - (SCUByte) length |
Returns subnet mask length.
| - (NSString *) mask |
Returns subnet mask text representation.
| + (SCSubnetMask *) maskWithClassA |
Returns a class A default subnet mask.
| + (SCSubnetMask *) maskWithClassB |
Returns a class B default subnet mask.
| + (SCSubnetMask *) maskWithClassC |
Returns a class C default subnet mask.
| + (SCSubnetMask *) maskWithCoder: | (NSCoder *) | coder |
Returns a subnet mask from the specified coder.
| coder | - source coder |
| + (SCSubnetMask *) maskWithContentsOfSerializedFile: | (NSString *) | path |
Returns a subnet mask from the serialized file with the specified path.
| path | - serialized file path |
| + (SCSubnetMask *) maskWithCount: | (SCUInteger) | count |
Returns a subnet mask created by using the specified hosts count.
| count | - required hosts count |
| SCNetException | - incorrect hosts count detected |
| + (SCSubnetMask *) maskWithDataDictionary: | (NSDictionary *) | dictionary |
Returns a subnet mask from the specified dictionary.
| dictionary | - source dictionary |
| + (SCSubnetMask *) maskWithDataDictionaryFromFile: | (NSString *) | path |
Returns a subnet mask from the dictionary file with the specified path.
| path | - source dictionary file path |
| + (SCSubnetMask *) maskWithFileStream: | (NSString *) | path |
Returns a subnet mask from the file stream with the specified path.
| path | - file stream path |
| SCStreamException | - stream operation error detected |
| + (SCSubnetMask *) maskWithGlobal |
Returns a global internet subnet mask (0.0.0.0).
| + (SCSubnetMask *) maskWithHost |
Returns a host subnet mask (255.255.255.255).
| + (SCSubnetMask *) maskWithMask: | (SCSubnetMask *) | mask |
Returns a subnet mask created by using the existing subnet mask instance.
| mask | - existing subnet mask instance |
| SCNetException | - incorrect existing subnet mask instance detected |
| + (SCSubnetMask *) maskWithPrefix: | (NSString *) | prefix |
Returns a subnet mask created by using the specified subnet prefix.
| prefix | - subnet prefix string |
| SCNetException | - incorrect subnet prefix string detected |
| + (SCSubnetMask *) maskWithPrefixLength: | (SCUByte) | length |
Returns a subnet mask created by using the specified subnet prefix length.
| length | - subnet prefix length |
| SCNetException | - incorrect subnet prefix length detected |
| + (SCSubnetMask *) maskWithSerialLink |
Returns a serial link subnet mask.
| + (SCSubnetMask *) maskWithStream: | (SCStream *) | stream |
Returns a subnet mask from the specified stream.
| stream | - input stream for reading |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCSubnetMask *) maskWithString: | (NSString *) | mask |
Returns a subnet mask created by using the specified subnet mask string.
| mask | - subnet mask string |
| SCNetException | - incorrect subnet mask string detected |
| + (SCSubnetMask *) maskWithWildcard: | (NSString *) | wildcard |
Returns a subnet mask created by using the specified wildcard mask.
| wildcard | - wildcard mask string |
| SCNetException | - incorrect wildcard mask string detected |
| - (NSString *) prefix |
Returns subnet prefix.
| - (SCUInteger) raw |
Returns subnet mask binary representation.
| - (void) setCount: | (SCUInteger) | count |
Sets subnet mask using the specified hosts count.
| count | - required hosts count |
| SCNetException | - incorrect hosts count detected |
| - (void) setLength: | (SCUByte) | length |
Sets subnet mask using the specified prefix length.
| length | - prefix length |
| SCNetException | - incorrect prefix length detected |
| - (void) setMask: | (NSString *) | mask |
Sets subnet mask using the specified subnet mask string.
| mask | - subnet mask string |
| SCNetException | - incorrect subnet mask string detected |
| - (void) setPrefix: | (NSString *) | prefix |
Sets subnet mask using the specified subnet prefix.
| prefix | - subnet prefix string |
| SCNetException | - incorrect subnet prefix string detected |
| - (void) setWildcard: | (NSString *) | wildcard |
Sets subnet mask using the specified wildcard mask.
| wildcard | - wildcard mask string |
| SCNetException | - incorrect wildcard mask string detected |
| - (NSString *) wildcard |
Returns wildcard mask.
1.7.3