An IP address and port. More...
Instance Methods | |
| (FMLiveSwitchAddressType) | - addressType |
| Gets the address type. More... | |
| (NSString *) | - description |
| Returns a string that represents this instance. More... | |
| (int) | - hash |
| Returns a hash code for this instance. More... | |
| (instancetype) | - initWithIPAddress:port: |
| Initializes a new instance of the FMLiveSwitchTransportAddress class. More... | |
| (NSString *) | - ipAddress |
| Gets the IP address. More... | |
| (bool) | - isEqualWithObj: |
| Determines whether the specified object is equal to this instance. More... | |
| (int) | - port |
| Gets the port. More... | |
| (void) | - setIPAddress: |
| Sets the IP address. More... | |
| (void) | - setPort: |
| Sets the port. More... | |
Class Methods | |
| (bool) | + checkMaskWithAddress1:address2:mask: |
| Compares two addresses to see if they are on the same subnet. More... | |
| (bool) | + is6To4WithIPAddress: |
| Determines whether the specified IP address is a 6to4 address. More... | |
| (bool) | + isAnyWithIPAddress: |
| Determines whether the specified IP address is all zeros and represents "any" IP address. More... | |
| (bool) | + isDiscardWithIPAddress: |
| Determines whether the specified IP address is a discard address. More... | |
| (bool) | + isDocumentationWithIPAddress: |
| Determines whether the specified IP address is a documentation address. More... | |
| (bool) | + isIPAddress: |
| Determines whether a string is a valid IPv4 or IPv6 address. More... | |
| (bool) | + isIPv4WithIPAddress: |
| Determines whether the specified IP address is IPv4. More... | |
| (bool) | + isIPv6WithIPAddress: |
| Determines whether the specified IP address is IPv6. More... | |
| (bool) | + isLimitedBroadcastWithIPAddress: |
| Determines whether the specified IP address is a limited broadcast address. More... | |
| (bool) | + isLinkLocalWithIPAddress: |
| Determines whether the specified IP address is a link-local address. More... | |
| (bool) | + isLoopbackWithIPAddress: |
| Determines whether the specified IP address is a loopback address. More... | |
| (bool) | + isMulticastWithIPAddress: |
| Determines whether the specified IP address is a multicast address. More... | |
| (bool) | + isOrchidWithIPAddress: |
| Determines whether the specified IP address is an ORCHID address. More... | |
| (bool) | + isPrivateWithIPAddress: |
| Determines whether the specified IP address is a private address. More... | |
| (bool) | + isReservedWithIPAddress: |
| Determines whether the specified IP address is a reserved address. More... | |
| (bool) | + isSourceWithIPAddress: |
| Determines whether the specified IP address is a source address. More... | |
| (bool) | + isTeredoWithIPAddress: |
| Determines whether the specified IP address is a Teredo address. More... | |
| (NSString *) | + maskFromPrefixLength: |
| Gets a subnet mask from an IPv4 prefix length (0-32). More... | |
| (NSString *) | + maskFromPrefixLength:ipv6: |
| Gets a subnet mask from an IPv4 or IPv6 prefix length (0-32 or 0-128). More... | |
| (NSString *) | + sanitizeIPAddress: |
| Sanitizes the IP address, removing any local information. More... | |
| (FMLiveSwitchTransportAddress *) | + transportAddressWithIPAddress:port: |
| Initializes a new instance of the FMLiveSwitchTransportAddress class. More... | |
An IP address and port.
| - (FMLiveSwitchAddressType) addressType |
Gets the address type.
| + (bool) checkMaskWithAddress1: | (NSString *) | address1 | |
| address2: | (NSString *) | address2 | |
| mask: | (NSString *) | mask | |
Compares two addresses to see if they are on the same subnet.
| address1 | The first address. |
| address2 | The second address. |
| mask | The subnet mask. |
| - (NSString*) description |
Returns a string that represents this instance.
| - (int) hash |
Returns a hash code for this instance.
| - (instancetype) initWithIPAddress: | (NSString *) | ipAddress | |
| port: | (int) | port | |
Initializes a new instance of the FMLiveSwitchTransportAddress class.
| ipAddress | The IP address. |
| port | The port. |
Implemented in FMLiveSwitchServerAddress.
| - (NSString*) ipAddress |
Gets the IP address.
| + (bool) is6To4WithIPAddress: | (NSString *) | ipAddress |
Determines whether the specified IP address is a 6to4 address.
| ipAddress | The IP address. |
| + (bool) isAnyWithIPAddress: | (NSString *) | ipAddress |
Determines whether the specified IP address is all zeros and represents "any" IP address.
| ipAddress | The IP address. |
| + (bool) isDiscardWithIPAddress: | (NSString *) | ipAddress |
Determines whether the specified IP address is a discard address.
| ipAddress | The IP address. |
| + (bool) isDocumentationWithIPAddress: | (NSString *) | ipAddress |
Determines whether the specified IP address is a documentation address.
| ipAddress | The IP address. |
| - (bool) isEqualWithObj: | (id) | obj |
Determines whether the specified object is equal to this instance.
| obj | The object to compare with this instance. |
| + (bool) isIPAddress: | (NSString *) | address |
Determines whether a string is a valid IPv4 or IPv6 address.
| address | The address. |
| + (bool) isIPv4WithIPAddress: | (NSString *) | ipAddress |
Determines whether the specified IP address is IPv4.
| ipAddress | The IP address. |
true if the specified IP address is IPv4; otherwise, false. | + (bool) isIPv6WithIPAddress: | (NSString *) | ipAddress |
Determines whether the specified IP address is IPv6.
| ipAddress | The IP address. |
true if the specified IP address is IPv6; otherwise, false. | + (bool) isLimitedBroadcastWithIPAddress: | (NSString *) | ipAddress |
Determines whether the specified IP address is a limited broadcast address.
| ipAddress | The IP address. |
| + (bool) isLinkLocalWithIPAddress: | (NSString *) | ipAddress |
Determines whether the specified IP address is a link-local address.
| ipAddress | The IP address. |
| + (bool) isLoopbackWithIPAddress: | (NSString *) | ipAddress |
Determines whether the specified IP address is a loopback address.
| ipAddress | The IP address. |
| + (bool) isMulticastWithIPAddress: | (NSString *) | ipAddress |
Determines whether the specified IP address is a multicast address.
| ipAddress | The IP address. |
| + (bool) isOrchidWithIPAddress: | (NSString *) | ipAddress |
Determines whether the specified IP address is an ORCHID address.
| ipAddress | The IP address. |
| + (bool) isPrivateWithIPAddress: | (NSString *) | ipAddress |
Determines whether the specified IP address is a private address.
| ipAddress | The IP address. |
| + (bool) isReservedWithIPAddress: | (NSString *) | ipAddress |
Determines whether the specified IP address is a reserved address.
| ipAddress | The IP address. |
| + (bool) isSourceWithIPAddress: | (NSString *) | ipAddress |
Determines whether the specified IP address is a source address.
| ipAddress | The IP address. |
| + (bool) isTeredoWithIPAddress: | (NSString *) | ipAddress |
Determines whether the specified IP address is a Teredo address.
| ipAddress | The IP address. |
| + (NSString*) maskFromPrefixLength: | (int) | prefixLength |
Gets a subnet mask from an IPv4 prefix length (0-32).
| prefixLength | The prefix length. |
| + (NSString*) maskFromPrefixLength: | (int) | prefixLength | |
| ipv6: | (bool) | ipv6 | |
Gets a subnet mask from an IPv4 or IPv6 prefix length (0-32 or 0-128).
| prefixLength | The prefix length. |
| ipv6 | Whether to return an IPv6 mask. |
| - (int) port |
Gets the port.
Sanitizes the IP address, removing any local information.
| ipAddress | The IP address to sanitize. |
| - (void) setIPAddress: | (NSString *) | value |
Sets the IP address.
| - (void) setPort: | (int) | value |
Sets the port.
| + (FMLiveSwitchTransportAddress*) transportAddressWithIPAddress: | (NSString *) | ipAddress | |
| port: | (int) | port | |
Initializes a new instance of the FMLiveSwitchTransportAddress class.
| ipAddress | The IP address. |
| port | The port. |