1#if !defined(RESIP_NETNS_HXX) && defined(USE_NETNS)
25 class Exception final :
public BaseException
28 Exception(
const Data& message,
const Data& fileName,
int lineNumber) :
29 BaseException(message, fileName, lineNumber){}
31 const char* name()
const noexcept override {
return(
"NetNs::Exception"); }
37 static int setNs(
const Data& netNs);
52 static int getPublicNetNs(std::vector<Data>& netNsNames);
67 static int getNetNsId(
const Data& netNsName,
bool shouldAdd =
false);
82 static void makeNetNsDeviceName(
const Data& netNs, Data& deviceName);
93 static int openNetNs(
const Data& netNs);
104 static bool netNsExists(
const Data& netNs);
116 static const Data& getNetNsName(
int netNsId);
129 NetNs(
const NetNs& );
130 NetNs& operator=(
const NetNs&);
132 static void initDictionary();
134 static HashMap<int, Data> sIdDictionaryToNetNs;
135 static HashMap<Data, int> sNetNsDictionaryToId;
Wraps your platform's implementation of hash_map, hash_multimap, and hash_set.
dcm! – add UnusedChecking(_enum) below;