14 #include "settings/lib/ISettingCallback.h"    16 #include "PlatformDefs.h"    23    virtual bool IsEnabled(
void) 
const = 0;
    24    virtual bool IsConnected(
void) 
const = 0;
    26    virtual std::string GetMacAddress(
void) 
const = 0;
    27    virtual void GetMacAddressRaw(
char rawMac[6]) 
const = 0;
    29    virtual bool GetHostMacAddress(
unsigned long host, std::string& mac) 
const = 0;
    31    virtual std::string GetCurrentIPAddress() 
const = 0;
    32    virtual std::string GetCurrentNetmask() 
const = 0;
    33    virtual std::string GetCurrentDefaultGateway(
void) 
const = 0;
    49   static std::unique_ptr<CNetworkBase> GetNetwork();
    58   virtual bool GetHostName(std::string& hostname);
    61   virtual std::vector<CNetworkInterface*>& GetInterfaceList(
void) = 0;
    67   bool HasInterfaceForIP(
unsigned long address);
    70   bool IsAvailable(
void);
    73   bool IsConnected(
void);
    76   bool WakeOnLan(
const char* mac);
    79   bool PingHost(
unsigned long host,
    81                 unsigned int timeout_ms = 2000,
    82                 bool readability_check = 
false);
    83   virtual bool PingHost(
unsigned long host, 
unsigned int timeout_ms = 2000) = 0;
    86   virtual std::vector<std::string> GetNameServers(
void) = 0;
    89   void NetworkMessage(EMESSAGE message, 
int param);
    91   static int ParseHex(
char* str, 
unsigned char* addr);
    94   bool IsLocalHost(
const std::string& hostname);
   108   static std::string GetIpStr(
const sockaddr* sa);
   115   static std::string GetMaskByPrefixLength(uint8_t prefixLength);
   117   std::unique_ptr<CNetworkServices> m_services;
   122 std::vector<SOCKET> CreateTCPServerSocket(
const int port, 
const bool bindLocal, 
const int backlog, 
const char *callerName);
 Wrapper around CSettingsManager responsible for properly setting up the settings manager and register...
Definition: Settings.h:27
Definition: NetworkServices.h:29