mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Detect network interface of the default route without use of ip
This commit is contained in:
committed by
Dennis Klein
parent
f2da29a650
commit
15de80cfd3
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
|
||||
// forward declarations
|
||||
namespace boost
|
||||
@@ -31,6 +32,8 @@ namespace mq
|
||||
namespace tools
|
||||
{
|
||||
|
||||
struct DefaultRouteDetectionError : std::runtime_error { using std::runtime_error::runtime_error; };
|
||||
|
||||
// returns a map with network interface names as keys and their IP addresses as values
|
||||
std::map<std::string, std::string> getHostIPs();
|
||||
|
||||
|
Reference in New Issue
Block a user