Add test for interface IP detection tools

This commit is contained in:
Alexey Rybalchenko
2018-11-01 11:23:00 +01:00
committed by Dennis Klein
parent 5e4876c947
commit 0b199e779a
4 changed files with 70 additions and 60 deletions

View File

@@ -32,7 +32,7 @@ namespace tools
{
// returns a map with network interface names as keys and their IP addresses as values
int getHostIPs(std::map<std::string, std::string>& addressMap);
std::map<std::string, std::string> getHostIPs();
// get IP address of a given interface name
std::string getInterfaceIP(const std::string& interface);