16CRootdevice::CRootdevice(){
17 TRACE2(
this,
" Construct CRootdevice()")
21CRootdevice::~CRootdevice() {
22 TRACE2(
this,
" Destruct CRootdevice()")
27 TRACE2(
this,
" Executing CRootdevice::bind()")
32 enum struct Found { none, name, index, addr } iface_found{};
34 if (nadaptObj.
name() == a_ifname) {
35 iface_found = Found::name;
40 switch (iface_found) {
55 TRACE2(
this,
" Executing CRootdevice::ifname()")
Get information from local network adapters.
UPnPsdk_API void get_first()
Load a list of network adapters from the operating system and select its first entry.
UPnPsdk_API std::string name() const
Get network adapter name from current selected list entry.
UPnPsdk_API bool get_next()
Select next entry from the network adapter list that was initial loaded with get_first().
std::string ifname() const
Get interface name.
void bind(const std::string &a_ifname)
Bind rootdevice to local network interfaces.
Reengineered Object Oriented UPnP+ program code.
Manage information about network adapters.
Define macro for synced logging to the console for detailed info and debug.