![]() |
B2BITS FIX Antenna C++ 2.34.0
|
This class represents an Internet Protocol (IP) address. More...
#include <B2BITS_InetAddress.h>
Public Member Functions | |
| struct in_addr | getAddress (void) const |
| Returns a low level system usable struct in_addr object. | |
| std::string | getHostAddress () const |
| Returns the IP address std::string "%d.%d.%d.%d". | |
| std::string | getHostName () const |
| Gets the host name for this IP address. | |
| InetAddress () | |
| InetAddress (struct in_addr aAddr) | |
| bool | operator!= (const InetAddress &aRhs) const |
| bool | operator== (const InetAddress &aRhs) const |
| IPAddr | toIPAddr () const |
| Converts internal storage to IPAddr. | |
Static Public Member Functions | |
| static InetAddress | Any () |
| Returns IP address for INADDR_ANY. | |
| static void | cleanup () |
| Cleanups resources. | |
| static InetAddress | getByName (char const *aHost) |
| Determines the IP address of a host, given the host's name. | |
| static void | getByName (char const *aHost, std::vector< InetAddress > *dest) |
| Determines the IP address of a host, given the host's name. | |
| static InetAddress | getByName (const std::string &aHost) |
| Determines the IP address of a host, given the host's name. | |
| static void | getByName (const std::string &aHost, std::vector< InetAddress > *dest) |
| Determines the IP address of a host, given the host's name. | |
| static InetAddress | getLocalHost () |
| Returns the local host. | |
| static void | getLocalHost (std::vector< InetAddress > *dest) |
| Returns the local host. | |
| static void | init (bool enableDnsEntrySpoofingDetection=false) |
| Inits all methods. | |
| static bool | isDnsEntrySpoofingDetectionEnabled () throw () |
| static bool | isLocalAddress (in_addr const &addr) |
| Returns true if passed address is local IP address. | |
| static bool | isLocalAddress (InetAddress const &addr) |
| Returns true if passed address is local IP address. | |
| static bool | validateIpAddress (const std::string &ipAddress) |
| static bool | validateIpPort (int port) |
This class represents an Internet Protocol (IP) address.
| System::InetAddress::InetAddress | ( | ) |
|
inline |
|
static |
Returns IP address for INADDR_ANY.
|
static |
Cleanups resources.
|
inline |
Returns a low level system usable struct in_addr object.
Referenced by isLocalAddress().
|
static |
Determines the IP address of a host, given the host's name.
The host name can either be a machine name, such as "www.yahoo.com", or a string representing its IP address, such as "192.168.0.100".
| SystemException |
|
static |
Determines the IP address of a host, given the host's name.
The host name can either be a machine name, such as "www.yahoo.com", or a std::string representing its IP address, such as "192.168.0.100".
| SystemException |
|
inlinestatic |
Determines the IP address of a host, given the host's name.
The host name can either be a machine name, such as "www.yahoo.com", or a string representing its IP address, such as "192.168.0.100".
| SystemException |
|
inlinestatic |
Determines the IP address of a host, given the host's name.
The host name can either be a machine name, such as "www.yahoo.com", or a string representing its IP address, such as "192.168.0.100".
| SystemException |
| std::string System::InetAddress::getHostAddress | ( | ) | const |
Returns the IP address std::string "%d.%d.%d.%d".
| std::string System::InetAddress::getHostName | ( | ) | const |
Gets the host name for this IP address.
| SystemException |
|
static |
Returns the local host.
| SystemException |
|
static |
Returns the local host.
| SystemException |
|
static |
Inits all methods.
Must be the first InetAddress method called by an application.
| SystemException |
|
inlinestatic | ||||||||||||
|
static |
Returns true if passed address is local IP address.
|
inlinestatic |
Returns true if passed address is local IP address.
References getAddress().
| bool System::InetAddress::operator!= | ( | const InetAddress & | aRhs | ) | const |
| bool System::InetAddress::operator== | ( | const InetAddress & | aRhs | ) | const |
|
static |
|
static |