Public Methods |
| | InetAddress () |
| | Create an Internet Address object with an empty (0.0.0.0) address.
|
| | InetAddress (struct in_addr addr) |
| | Convert the system internet address data type (struct in_addr) into a Common C++ InetAddress object. More...
|
| | InetAddress (const char *address) |
| | Convert a null terminated ASCII host address string (example: "127.0.0.1") directly into a Common C++ InetAddress object. More...
|
| | InetAddress (const InetAddress &rhs) |
| | Copy constructor.
|
| virtual | ~InetAddress () |
| | Destructor.
|
| const char* | getHostname (void) const |
| | Provide a string representation of the value (Internet Address) held in the InetAddress object. More...
|
| bool | isInetAddress (void) const |
| | May be used to verify if a given InetAddress returned by another function contains a "valid" address, or "0.0.0.0" which is often used to mark "invalid" InetAddress values. More...
|
| struct in_addr | getAddress (void) const |
| | Provide a low level system usable struct in_addr object from the contents of InetAddress. More...
|
| struct in_addr | getAddress (size_t i) const |
| | Provide a low level system usable struct in_addr object from the contents of InetAddress. More...
|
| size_t | getAddressCount () const |
| | Returns the number of internet addresses that an InetAddress object contains. More...
|
| InetAddress& | operator= (const char *str) |
| InetAddress& | operator= (struct in_addr addr) |
| InetAddress& | operator= (const InetAddress &rhs) |
| InetAddress& | operator= (unsigned long addr) |
| | Allows assignment from the return of functions like inet_addr() or htonl().
|
| bool | operator! () const |
| bool | operator== (const InetAddress &a) const |
| | Compare two internet addresses to see if they are equal (if they specify the physical address of the same internet host). More...
|
| bool | operator!= (const InetAddress &a) const |
| | Compare two internet addresses to see if they are not equal (if they each refer to unique and different physical ip addresses). More...
|
Protected Methods |
| bool | setIPAddress (const char *host) |
| | Sets the IP address from a string representation of the numeric address, ie "127.0.0.1". More...
|
| void | setAddress (const char *host) |
| | Used to specify a host name or numeric internet address. More...
|
Protected Attributes |
| struct in_addr* | ipaddr |
| size_t | addr_count |
Static Protected Attributes |
| MutexCounter | counter |
| Mutex | mutex |