|
Samond Classes Library 1.1.6-RELEASE build 132
|
IPv4 address representation class. More...
#import <SCIPAddress.h>
IPv4 address representation class.
Class represents IPv4 address for using in addressing and subnetting.
This class was introduced in version 1.0.4.
Class declares the following properities:
| - (NSString *) address |
Returns the text representation of the IP address.
| - (NSString *) addressClass |
Returns the IP address class.
| + (SCIPAddress *) addressWithAddress: | (SCIPAddress *) | address |
Returns an IP address created by using the specified existing class instance.
| address | - existing class instance |
| SCNetException | - incorrect source class instance detected |
| + (SCIPAddress *) addressWithCoder: | (NSCoder *) | coder |
Returns an IP address from the specified coder.
| coder | - source coder |
| + (SCIPAddress *) addressWithContentsOfSerializedFile: | (NSString *) | path |
Returns an IP address from the serialized file with the specified path.
| path | - serialized file path |
| + (SCIPAddress *) addressWithDataDictionary: | (NSDictionary *) | dictionary |
Returns an IP address from the specified dictionary.
| dictionary | - source dictionary |
| + (SCIPAddress *) addressWithDataDictionaryFromFile: | (NSString *) | path |
Returns an IP adress from the dictionary file with the specified path.
| path | - source dictionary file path |
| + (SCIPAddress *) addressWithFileStream: | (NSString *) | path |
Returns an IP address from the file stream with the specified path.
| path | - file stream path |
| SCStreamException | - stream operation error detected |
| + (SCIPAddress *) addressWithLocalHost |
Returns a local host IP address (127.0.0.1).
| + (SCIPAddress *) addressWithStream: | (SCStream *) | stream |
Returns an IP address from the specified stream.
| stream | - input stream for reading |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCIPAddress *) addressWithString: | (NSString *) | address |
Returns an IP address created by using the specified address string.
| address | - address string |
| SCNetException | - incorrect address string detected |
| - (SCIPAddress *) broadcastAddress |
Returns a broadcast address of classfull network with the receiver's address.
| - (SCIPAddress *) broadcastAddressWithCount: | (SCUInteger) | count |
Returns a broadcast address of network with the receiver's address and the specified hosts count.
| count | - hosts count |
| SCNetException | - incorrect hosts count detected |
| - (SCIPAddress *) broadcastAddressWithLength: | (SCUByte) | length |
Returns a broadcast address of network with the receiver's address and the specified subnet prefix length.
| length | - subnet prefix length |
| SCNetException | - incorrect subnet prefix length detected |
| - (SCIPAddress *) broadcastAddressWithMask: | (SCSubnetMask *) | mask |
Returns a broadcast address of network with the receiver's address and the specified subnet mask.
| mask | - subnet mask |
| SCNetException | - incorrect subnet mask detected |
| - (SCIPAddress *) broadcastAddressWithMaskString: | (NSString *) | mask |
Returns a broadcast address of network with the receiver's address and the specified subnet mask string.
| mask | - subnet mask string |
| SCNetException | - incorrect subnet mask string detected |
| - (SCIPAddress *) broadcastAddressWithPrefix: | (NSString *) | prefix |
Returns a broadcast address of network with the receiver's address and the specified subnet prefix.
| prefix | - subnet prefix string |
| SCNetException | - incorrect subnet prefix string detected |
| - (SCIPAddress *) broadcastAddressWithWildcard: | (NSString *) | wildcard |
Returns a broadcast address of network with the receiver's address and the specified wildcard mask.
| wildcard | - wildcard mask string |
| SCNetException | - incorrect wildcard mask string detected |
| - (void) copyAddress: | (SCIPAddress *) | address |
Sets IP address using the specified existing source class instance.
| address | - existing source class instance |
| SCNetException | - incorrect source class instance detected |
| - (SCSubnetMask *) defaultMask |
Returns the classfull default subnet mask.
| - (NSString *) description |
Returns class instance description.
| + (SCIPAddress *) emptyAddress |
Returns an ampty IP address (0.0.0.0).
| - (SCIPAddress *) firstAddress |
Returns a first regular address in classfull network with the receiver's address.
| - (SCIPAddress *) firstAddressWithCount: | (SCUInteger) | count |
Returns a first regular address of network with the receiver's address and the specified hosts count.
| count | - hosts count |
| SCNetException | - incorrect hosts count detected |
| - (SCIPAddress *) firstAddressWithLength: | (SCUByte) | length |
Returns a first regular address of network with the receiver's address and the specified subnet prefix length.
| length | - subnet prefix length |
| SCNetException | - incorrect subnet prefix length detected |
| - (SCIPAddress *) firstAddressWithMask: | (SCSubnetMask *) | mask |
Returns a first regular address in network with the receiver's address and the specified subnet mask.
| mask | - subnet mask |
| SCNetException | - incorrect subnet mask detected |
| - (SCIPAddress *) firstAddressWithMaskString: | (NSString *) | mask |
Returns a first regular address of network with the receiver's address and the specified subnet mask.
| mask | - subnet mask string |
| SCNetException | - incorrect subnet mask string detected |
| - (SCIPAddress *) firstAddressWithPrefix: | (NSString *) | prefix |
Returns a first regular address of network with the receiver's address and the specified subnet prefix.
| prefix | - subnet prefix string |
| SCNetException | - incorrect subnet prefix string detected |
| - (SCIPAddress *) firstAddressWithWildcard: | (NSString *) | wildcard |
Returns a first regular address of network with the receiver's address and the specified wildcard mask.
| wildcard | - wildcard mask string |
| SCNetException | - incorrect wildcard mask string detected |
| - (SCUByte) firstOctet |
Returns the first octet value.
| - (id) init |
Initializes the empty IP address (0.0.0.0).
| - (id) initWithAddress: | (SCIPAddress *) | address |
Initializes the IP address using the specified existing source instance.
| address | - existing source instance |
| SCNetException | - incorrect source IP address instance detected |
| - (id) initWithLocalHost |
Initializes local host IP address (127.0.0.1).
| - (id) initWithString: | (NSString *) | address |
Initializes the IP address using the specified address string.
| address | - address string |
| SCNetException | - incorrect address string detected |
| - (BOOL) isAddress |
Checks a reffering address to regular addressing space.
| - (BOOL) isBroadcast |
Checks an address whether the broadcast address of classfull network.
| - (BOOL) isBroadcastWithCount: | (SCUInteger) | count |
Checks an address whether the broadcast address of network with the specified hosts count.
| count | - hosts count |
| SCNetException | - incorrect hosts count detected |
| - (BOOL) isBroadcastWithLength: | (SCUByte) | length |
Checks an address whether the broadcast address of network with the specified prefix length.
| length | - subnet prefix length |
| SCNetException | - incorrect subnet prefix length detected |
| - (BOOL) isBroadcastWithMask: | (SCSubnetMask *) | mask |
Checks an address whether the broadcast address of network with the specified subnet mask.
| mask | - subnet mask |
| SCNetException | - incorrect subnet mask detected |
| - (BOOL) isBroadcastWithMaskString: | (NSString *) | mask |
Checks an address whether the broadcast address of network with the specified subnet mask string.
| mask | - subnet mask string |
| SCNetException | - incorrect subnet mask string detected |
| - (BOOL) isBroadcastWithPrefix: | (NSString *) | prefix |
Checks an address whether the broadcast address of network with the specified subnet prefix.
| prefix | - subnet prefix string |
| SCNetException | - incorrect subnet prefix string detected |
| - (BOOL) isBroadcastWithWildcard: | (NSString *) | wildcard |
Checks an address whether the broadcast address of network with the specified wildcard mask.
| wildcard | - wildcard mask string |
| SCNetException | - incorrect wildcard mask string detected |
| - (BOOL) isClassA |
Checks a referring address to Class A network.
| - (BOOL) isClassB |
Checks a referring address to Class B network.
| - (BOOL) isClassC |
Checks a referring address to Class C network.
| - (BOOL) isClassD |
Checks a referring address to Class D.
| - (BOOL) isClassE |
Checks a referring address to Class E.
| - (BOOL) isEqual: | (id) | address |
Returns a Boolean value as a result of comparing receiver's instance with other address instance.
| address | - second address instance |
| SCNetException | - incorrect other address instance detected |
Reimplemented from SCObject.
| - (BOOL) isEqualToAddress: | (SCIPAddress *) | address |
Returns a Boolean value as a result of comparing receiver's instance with other address instance.
| address | - second address instance |
| SCNetException | - incorrect other address instance detected |
| - (BOOL) isEqualToString: | (NSString *) | address |
Returns a Boolean value as a result of comparing receiver's instance with address text representation.
| address | - address string |
| SCNetException | - incorrect address string detected |
| - (BOOL) isExperimantal |
Checks a referring address to experimental address.
| - (BOOL) isHostAddress |
Checks an address whether the host address in classfull network.
| - (BOOL) isHostAddressWithCount: | (SCUInteger) | count |
Checks an address whether the host address in network with the specified hosts count.
| count | - hosts count |
| SCNetException | - incorrect hosts count detected |
| - (BOOL) isHostAddressWithLength: | (SCUByte) | length |
Checks an address whether the host address in network with the specified subnet prefix length.
| length | - subnet prefix length |
| SCNetException | - incorrect subnet prefix length detected |
| - (BOOL) isHostAddressWithMask: | (SCSubnetMask *) | mask |
Checks an address whether the host address in network with the specified subnet mask.
| mask | - subnet mask |
| SCNetException | - incorrect subnet mask detected |
| - (BOOL) isHostAddressWithMaskString: | (NSString *) | mask |
Checks an address whether the host address in network with the specified subnet mask string.
| mask | - subnet mask string |
| SCNetException | - incorrect subnet mask string detected |
| - (BOOL) isHostAddressWithPrefix: | (NSString *) | prefix |
Checks an address whether the host address in network with the specified subnet prefix.
| prefix | - subnet prefix string |
| SCNetException | - incorrect subnet prefix detected |
| - (BOOL) isHostAddressWithWildcard: | (NSString *) | wildcard |
Checks an address whether the host address in network with the specified wildcard mask.
| wildcard | - wildcard mask string |
| SCNetException | - incorrect wildcard mask string detected |
| - (BOOL) isLocalHost |
Checks an equal address to special local host address (127.0.0.1).
| - (BOOL) isMulticast |
Checks a referring address to multicast address.
| - (BOOL) isNetAddress |
Checks a reffering address to classfull network address.
| - (BOOL) isNetAddressWithCount: | (SCUInteger) | count |
Checks an address whether the address of network with the specified hosts count.
| count | - hosts count |
| SCNetException | - incorrect hosts count detected |
| - (BOOL) isNetAddressWithLength: | (SCUByte) | length |
Checks an address whether the address of network with the specified subnet prefix length.
| length | - subnet prefix length |
| SCNetException | - incorrect subnet prefix length detected |
| - (BOOL) isNetAddressWithMask: | (SCSubnetMask *) | mask |
Checks an address whether the address of network with the specified subnet mask.
| mask | - subnet mask |
| SCNetException | - incorrect subnet mask detected |
| - (BOOL) isNetAddressWithMaskString: | (NSString *) | mask |
Checks an address whether the address of network with the specified subnet mask string.
| mask | - subnet mask string |
| SCNetException | - incorrect subnet mask string detected |
| - (BOOL) isNetAddressWithPrefix: | (NSString *) | prefix |
Checks an address whether the address of network with the specified subnet prefix.
| prefix | - subnet prefix string |
| SCNetException | - incorrect subnet prefix string detected |
| - (BOOL) isNetAddressWithWildcard: | (NSString *) | wildcard |
Checks an address whether the address of network with the specified wildcard mask.
| wildcard | - wildcard mask string |
| SCNetException | - incorrect wildcard mask detected |
| - (BOOL) isPrivate |
Checks a reffering address to private addressing space.
| - (SCIPAddress *) lastAddress |
Returns a last regular address of classfull network with the receiver's address. Метод возвращает последний доступный адрес в классовой сети.
| - (SCIPAddress *) lastAddressWithCount: | (SCUInteger) | count |
Returns a last regular address of network with the receiver's address and the specified hosts count.
| count | - hosts count |
| SCNetException | - incorrect hosts count detected |
| - (SCIPAddress *) lastAddressWithLength: | (SCUByte) | length |
Returns a last regular address of network with the receiver's address and the specified subnet prefix length.
| length | - subnet prefix length |
| SCNetException | - incorrect subnet prefix length detected |
| - (SCIPAddress *) lastAddressWithMask: | (SCSubnetMask *) | mask |
Returns a last regular address of network with the receiver's address and the specified subnet mask.
| mask | - subnet mask |
| SCNetException | - incorrect subnet mask detected |
| - (SCIPAddress *) lastAddressWithMaskString: | (NSString *) | mask |
Returns a last regular address of network with the receiver's address and the specified subnet mask string.
| mask | - subnet mask string |
| SCNetException | - incorrect subnet mask string detected |
| - (SCIPAddress *) lastAddressWithPrefix: | (NSString *) | prefix |
Returns a last regular address of network with the receiver's address and the specified subnet prefix.
| prefix | - subnet prefix string |
| SCNetException | - incorrect subnet prefix string detected |
| - (SCIPAddress *) lastAddressWithWildcard: | (NSString *) | wildcard |
Returns a last regular address of network with the receiver's address and the specified wildcard mask.
| wildcard | - wildcard mask string |
| SCNetException | - incorrect wildcard mask string detected |
| - (SCIPAddress *) netAddress |
Returns a network address of classfull network with receiver's address.
| - (SCIPAddress *) netAddressWithCount: | (SCUInteger) | count |
Returns a network address of network with the receiver's address and the specified hosts count.
| count | - hosts count |
| SCNetException | - incorrect hosts count detected |
| - (SCIPAddress *) netAddressWithLength: | (SCUByte) | length |
Returns a network address of network with the receiver's address and the specified subnet prefix length.
| length | - subnet prefix length |
| SCNetException | - incorrect subnet prefix length detected |
| - (SCIPAddress *) netAddressWithMask: | (SCSubnetMask *) | mask |
Returns a network address of network with the receiver's address and the specified subnet mask.
| mask | - subnet mask |
| SCNetException | - incorrect subnet mask detected |
| - (SCIPAddress *) netAddressWithMaskString: | (NSString *) | mask |
Returns a network address of network with the receiver's address and the specified subnet mask string.
| mask | - subnet mask string |
| SCNetException | - incorrect subnet mask detected |
| - (SCIPAddress *) netAddressWithPrefix: | (NSString *) | prefix |
Returns a network address of network with the receiver's address and the specified subnet prefix.
| prefix | - subnet prefix string |
| SCNetException | - incorrect subnet prefix string detected |
| - (SCIPAddress *) netAddressWithWildcard: | (NSString *) | wildcard |
Returns a network address of network with the receiver's address and the specified wildcard mask.
| wildcard | - wildcard mask string |
| SCNetException | - incorrect wildcard mask string detected |
Returns the value of the specified octet.
| index | - required octet index |
| - (SCUInteger) raw |
Returns the address binary representation.
| - (void) setAddress: | (NSString *) | address |
Sets IP address using the specified address string.
| address | - address string |
| SCNetException | - incorrect address string detected |
1.7.3