Class IPFinder, to determine the IP of the NICs.
More...
#include <IPFinder.h>
Class IPFinder, to determine the IP of the NICs.
◆ info_IP
Structure info_IP with information about a specific IP obtained from a NIC.
◆ IPTYPE
Enum IPTYPE, to define the type of IP obtained from the NICs.
Enumerator |
---|
IP4 | IP4.
|
IP6 | IP6.
|
IP4_LOCAL | IP4_LOCAL.
|
IP6_LOCAL | IP6_LOCAL.
|
◆ IPFinder()
◆ ~IPFinder()
◆ getAllIPAddress()
static RTPS_DllAPI bool getAllIPAddress |
( |
LocatorList_t * |
locators | ) |
|
|
static |
Get all IP Adresses in all interfaces.
- Parameters
-
[out] | locators | List of locators to be populated with the addresses. |
◆ getIP4Address()
static RTPS_DllAPI bool getIP4Address |
( |
LocatorList_t * |
locators | ) |
|
|
static |
Get the IP4Adresses in all interfaces.
- Parameters
-
[out] | locators | List of locators to be populated with the IP4 addresses. |
◆ getIP6Address()
static RTPS_DllAPI bool getIP6Address |
( |
LocatorList_t * |
locators | ) |
|
|
static |
Get the IP6Adresses in all interfaces.
- Parameters
-
[out] | locators | List of locators to be populated with the IP6 addresses. |
◆ getIPs()
static RTPS_DllAPI bool getIPs |
( |
std::vector< info_IP > * |
vec_name, |
|
|
bool |
return_loopback = false |
|
) |
| |
|
static |
◆ getIPv4Address()
static RTPS_DllAPI std::string getIPv4Address |
( |
const std::string & |
name | ) |
|
|
static |
◆ getIPv6Address()
static RTPS_DllAPI std::string getIPv6Address |
( |
const std::string & |
name | ) |
|
|
static |
◆ parseIP4()
static RTPS_DllAPI bool parseIP4 |
( |
info_IP & |
info | ) |
|
|
static |
Parses an IP4 string, populating a info_IP with its value.
- Parameters
-
◆ parseIP6()
static RTPS_DllAPI bool parseIP6 |
( |
info_IP & |
info | ) |
|
|
static |
Parses an IP6 string, populating a info_IP with its value.
- Parameters
-
The documentation for this class was generated from the following file: