hmbdc
simplify-high-performance-messaging-programming
Main Page
Namespaces
Classes
Files
Examples
File List
hmbdc
comm
inet
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
* @brief resolve a local ip interface using a mask
11
*
12
* @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"
13
* when using 192.168.0.1/0
14
* @param includeLoopback if it is false, the loopback address is excluded from the result
15
* @return a local ip matches the mask if no exception is thrown
16
*/
17
std::string getLocalIpMatchMask(std::string
const
& mask,
bool
includeLoopback =
true
);
18
std::string getLocalIpThruName(std::string
const
& name);
19
}}}
hmbdc
Definition:
Base.hpp:12
Generated by
1.8.11