version 1.1.2.5, 2007/06/19 07:16:32
|
version 1.2, 2007/06/26 20:26:13
|
|
|
| |
/** | /** |
Constructor. addrStr can be HostName or IPv4Address or | Constructor. addrStr can be HostName or IPv4Address or |
IPv6Address. |
IPv6Address (without brackets). |
*/ | */ |
HostAddress(const String &addrStr); | HostAddress(const String &addrStr); |
HostAddress(const HostAddress &rhs); | HostAddress(const HostAddress &rhs); |
|
|
void setHostAddress(const String &addrStr); | void setHostAddress(const String &addrStr); |
| |
/** | /** |
Returns true if the address is valid. If vaild it can be HostName |
Returns true if the constructed HostAddress is valid. |
or IPv4Address or IPv6Address. |
If valid it can be HostName or IPv4Address or IPv6Address. |
|
Check if HostAddress is valid by using isValid() method |
|
before making any calls on HostAddress object. |
*/ | */ |
Boolean isValid(); | Boolean isValid(); |
| |
/** | /** |
Verifies given ipv4Address and returns true if it is valid. |
Verifies given IPv4Address and returns true if it is valid. |
*/ | */ |
static Boolean isValidIPV4Address(const String &ipv4Address); | static Boolean isValidIPV4Address(const String &ipv4Address); |
| |
/** | /** |
Verifies given ipv6Address and returns true if it is valid. |
Verifies given IPv6Address (without brackets) and returns |
|
true if it is valid. |
*/ | */ |
static Boolean isValidIPV6Address(const String &ipv6Address); | static Boolean isValidIPV6Address(const String &ipv6Address); |
| |
|
|
static Boolean equal(int af, void *p1, void *p2); | static Boolean equal(int af, void *p1, void *p2); |
| |
/** | /** |
Returns HostName or IPv4Address or IPv6Address. Removes port number |
Returns HostName or IPv4Address or IPv6Address. This returns an empty |
from HostAddress if present. This returns empty string HostAddress is |
String if HostAddress is not valid. |
not valid. Check if HostAddress is valid by using isValid() method |
Check if HostAddress is valid by using isValid() method |
before making any calls on HostAddress object. | before making any calls on HostAddress object. |
*/ | */ |
String getHost(); | String getHost(); |