hmbdc
simplify-high-performance-messaging-programming
Misc.hpp
1 #include "hmbdc/Copyright.hpp"
2 #pragma once
3 
4 #include "hmbdc/Exception.hpp"
5 
6 #include <string>
7 
8 namespace hmbdc { namespace comm { namespace inet {
9 
10 using namespace std;
11 /**
12  * @brief resolve a local ip interface using a mask
13  *
14  * @param mask in this format: "192.168.0.1/24" or "192.168.0.101" which is the same as "192.168.0.101/32"
15  * when using 192.168.0.1/0
16  * @param includeLoopback if it is false, the loopback address is excluded from the result
17  * @return a local ip matches the mask if no exception is thrown
18  */
19 string getLocalIpMatchMask(string const& mask, bool includeLoopback = true);
20 string getLocalIpThruName(string const& name);
21 }}}
Definition: TypedString.hpp:74
Definition: Client.hpp:11