1#ifndef UPnPsdk_NETADAPTER_IF_HPP
2#define UPnPsdk_NETADAPTER_IF_HPP
75 virtual unsigned int index()
const = 0;
84 virtual std::string
name()
const = 0;
Manage information from different platforms about network adapters.
virtual void reset() noexcept=0
Reset pointer and point to the first entry of the local network adapter list if available.
virtual void socknetmask(SSockaddr &a_snetmask) const =0
Get socket address netmask from current selected list entry.
virtual unsigned int index() const =0
Get index number from current selected list entry.
virtual std::string name() const =0
Get network adapter name from current selected list entry.
virtual void get_first()=0
Load a list of network adapters from the operating system and select its first entry.
virtual unsigned int bitmask() const =0
Get prefix length from the ip address of the current selected local network adapter.
virtual bool get_next()=0
Select next entry from the network adapter list that was initial loaded with get_first().
virtual void sockaddr(SSockaddr &a_saddr) const =0
Get socket address from current selected list entry.
Reengineered Object Oriented UPnP+ program code.
std::shared_ptr< INetadapter > PNetadapter_platform
Smart pointer to hold the injected pointer to the netadapter object for the current used platform.
Declaration of the Sockaddr class and some free helper functions.
Trivial ::sockaddr structures enhanced with methods.