28#include <fastdds/rtps/common/Locator.h>
29#include <fastdds/rtps/common/LocatorWithMask.hpp>
42#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC
85 std::vector<info_IP>* vec_name,
86 bool return_loopback =
false);
93 LocatorList_t* locators);
99 LocatorList_t* locators);
105 LocatorList_t* locators);
120 const std::string& name);
122 const std::string& name);
130 std::vector<info_MAC>* macs);
Class IPFinder, to determine the IP of the NICs.
Definition IPFinder.h:39
static RTPS_DllAPI bool getIP6Address(LocatorList_t *locators)
Get the IP6Adresses in all interfaces.
static RTPS_DllAPI std::string getIPv6Address(const std::string &name)
static RTPS_DllAPI bool getAllIPAddress(LocatorList_t *locators)
Get all IP Adresses in all interfaces.
static RTPS_DllAPI bool getIPs(std::vector< info_IP > *vec_name, bool return_loopback=false)
IPTYPE
Enum IPTYPE, to define the type of IP obtained from the NICs.
Definition IPFinder.h:47
@ IP4_LOCAL
IP4_LOCAL.
Definition IPFinder.h:50
@ IP4
IP4.
Definition IPFinder.h:48
@ IP6_LOCAL
IP6_LOCAL.
Definition IPFinder.h:51
@ IP6
IP6.
Definition IPFinder.h:49
static RTPS_DllAPI bool parseIP4(info_IP &info)
Parses an IP4 string, populating a info_IP with its value.
static RTPS_DllAPI std::string getIPv4Address(const std::string &name)
static RTPS_DllAPI bool getIP4Address(LocatorList_t *locators)
Get the IP4Adresses in all interfaces.
static RTPS_DllAPI bool parseIP6(info_IP &info)
Parses an IP6 string, populating a info_IP with its value.
static RTPS_DllAPI bool getAllMACAddress(std::vector< info_MAC > *macs)
Get all MAC Adresses of all interfaces.
eProsima namespace.
Definition LibrarySettingsAttributes.h:23
Structure info_IP with information about a specific IP obtained from a NIC.
Definition IPFinder.h:57
std::string dev
Definition IPFinder.h:60
fastdds::rtps::LocatorWithMask masked_locator
Definition IPFinder.h:62
std::string name
Definition IPFinder.h:59
IPTYPE type
Definition IPFinder.h:58
Locator_t locator
Definition IPFinder.h:61
Structure info_MAC with information about a specific MAC obtained from a NIC.
Definition IPFinder.h:69
bool operator==(const info_MAC &other)
Definition IPFinder.h:72
unsigned char address[6]
Definition IPFinder.h:70