An IP address and port. More...
Public Member Functions | |
| boolean | equals (Object obj) |
| Determines whether the specified object is equal to this instance. More... | |
| fm.liveswitch.AddressType | getAddressType () |
| Gets the address type. More... | |
| String | getIPAddress () |
| Gets the IP address. More... | |
| int | getPort () |
| Gets the port. More... | |
| int | hashCode () |
| Returns a hash code for this instance. More... | |
| void | setIPAddress (String value) |
| Sets the IP address. More... | |
| void | setPort (int value) |
| Sets the port. More... | |
| String | toString () |
| Returns a string that represents this instance. More... | |
| TransportAddress (String ipAddress, int port) | |
| Initializes a new instance of the fm.liveswitch.TransportAddress class. More... | |
Static Public Member Functions | |
| static boolean | checkMask (String address1, String address2, String mask) |
| Compares two addresses to see if they are on the same subnet. More... | |
| static boolean | is6To4 (String ipAddress) |
| Determines whether the specified IP address is a 6to4 address. More... | |
| static boolean | isAny (String ipAddress) |
| Determines whether the specified IP address is all zeros and represents "any" IP address. More... | |
| static boolean | isDiscard (String ipAddress) |
| Determines whether the specified IP address is a discard address. More... | |
| static boolean | isDocumentation (String ipAddress) |
| Determines whether the specified IP address is a documentation address. More... | |
| static boolean | isIPAddress (String address) |
| Determines whether a string is a valid IPv4 or IPv6 address. More... | |
| static boolean | isIPv4 (String ipAddress) |
| Determines whether the specified IP address is IPv4. More... | |
| static boolean | isIPv6 (String ipAddress) |
| Determines whether the specified IP address is IPv6. More... | |
| static boolean | isLimitedBroadcast (String ipAddress) |
| Determines whether the specified IP address is a limited broadcast address. More... | |
| static boolean | isLinkLocal (String ipAddress) |
| Determines whether the specified IP address is a link-local address. More... | |
| static boolean | isLoopback (String ipAddress) |
| Determines whether the specified IP address is a loopback address. More... | |
| static boolean | isMulticast (String ipAddress) |
| Determines whether the specified IP address is a multicast address. More... | |
| static boolean | isOrchid (String ipAddress) |
| Determines whether the specified IP address is an ORCHID address. More... | |
| static boolean | isPrivate (String ipAddress) |
| Determines whether the specified IP address is a private address. More... | |
| static boolean | isReserved (String ipAddress) |
| Determines whether the specified IP address is a reserved address. More... | |
| static boolean | isSource (String ipAddress) |
| Determines whether the specified IP address is a source address. More... | |
| static boolean | isTeredo (String ipAddress) |
| Determines whether the specified IP address is a Teredo address. More... | |
| static String | maskFromPrefixLength (int prefixLength) |
| Gets a subnet mask from an IPv4 prefix length (0-32). More... | |
| static String | maskFromPrefixLength (int prefixLength, boolean ipv6) |
| Gets a subnet mask from an IPv4 or IPv6 prefix length (0-32 or 0-128). More... | |
| static String | sanitizeIPAddress (String ipAddress) |
| Sanitizes the IP address, removing any local information. More... | |
An IP address and port.
| fm.liveswitch.TransportAddress.TransportAddress | ( | String | ipAddress, |
| int | port | ||
| ) |
Initializes a new instance of the fm.liveswitch.TransportAddress class.
| ipAddress | The IP address. |
| port | The port. |
|
static |
Compares two addresses to see if they are on the same subnet.
| address1 | The first address. |
| address2 | The second address. |
| mask | The subnet mask. |
| boolean fm.liveswitch.TransportAddress.equals | ( | Object | obj | ) |
Determines whether the specified object is equal to this instance.
| obj | The object to compare with this instance. |
| fm.liveswitch.AddressType fm.liveswitch.TransportAddress.getAddressType | ( | ) |
Gets the address type.
| String fm.liveswitch.TransportAddress.getIPAddress | ( | ) |
Gets the IP address.
| int fm.liveswitch.TransportAddress.getPort | ( | ) |
Gets the port.
| int fm.liveswitch.TransportAddress.hashCode | ( | ) |
Returns a hash code for this instance.
|
static |
Determines whether the specified IP address is a 6to4 address.
| ipAddress | The IP address. |
|
static |
Determines whether the specified IP address is all zeros and represents "any" IP address.
| ipAddress | The IP address. |
|
static |
Determines whether the specified IP address is a discard address.
| ipAddress | The IP address. |
|
static |
Determines whether the specified IP address is a documentation address.
| ipAddress | The IP address. |
|
static |
Determines whether a string is a valid IPv4 or IPv6 address.
| address | The address. |
|
static |
Determines whether the specified IP address is IPv4.
| ipAddress | The IP address. |
|
static |
Determines whether the specified IP address is IPv6.
| ipAddress | The IP address. |
|
static |
Determines whether the specified IP address is a limited broadcast address.
| ipAddress | The IP address. |
|
static |
Determines whether the specified IP address is a link-local address.
| ipAddress | The IP address. |
|
static |
Determines whether the specified IP address is a loopback address.
| ipAddress | The IP address. |
|
static |
Determines whether the specified IP address is a multicast address.
| ipAddress | The IP address. |
|
static |
Determines whether the specified IP address is an ORCHID address.
| ipAddress | The IP address. |
|
static |
Determines whether the specified IP address is a private address.
| ipAddress | The IP address. |
|
static |
Determines whether the specified IP address is a reserved address.
| ipAddress | The IP address. |
|
static |
Determines whether the specified IP address is a source address.
| ipAddress | The IP address. |
|
static |
Determines whether the specified IP address is a Teredo address.
| ipAddress | The IP address. |
|
static |
Gets a subnet mask from an IPv4 prefix length (0-32).
| prefixLength | The prefix length. |
|
static |
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. |
|
static |
Sanitizes the IP address, removing any local information.
| ipAddress | The IP address to sanitize. |
| void fm.liveswitch.TransportAddress.setIPAddress | ( | String | value | ) |
Sets the IP address.
| void fm.liveswitch.TransportAddress.setPort | ( | int | value | ) |
Sets the port.
| String fm.liveswitch.TransportAddress.toString | ( | ) |
Returns a string that represents this instance.