Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CNetworkIOS Class Reference

#include <NetworkIOS.h>

Inheritance diagram for CNetworkIOS:
CNetworkBase

Public Member Functions

 CNetworkIOS ()
 
 ~CNetworkIOS () override
 
std::vector< CNetworkInterface * > & GetInterfaceList () override
 
CNetworkInterfaceGetFirstConnectedInterface () override
 
bool PingHost (unsigned long host, unsigned int timeout_ms=2000) override
 
std::vector< std::string > GetNameServers () override
 
- Public Member Functions inherited from CNetworkBase
 CNetworkBase ()
 
virtual ~CNetworkBase ()
 
CNetworkServicesGetServices ()
 
virtual bool GetHostName (std::string &hostname)
 
bool HasInterfaceForIP (unsigned long address)
 
bool IsAvailable (void)
 
bool IsConnected (void)
 
bool WakeOnLan (const char *mac)
 
bool PingHost (unsigned long host, unsigned short port, unsigned int timeout_ms=2000, bool readability_check=false)
 
void NetworkMessage (EMESSAGE message, int param)
 
bool IsLocalHost (const std::string &hostname)
 
void WaitForNet ()
 

Friends

class CNetworkInterfaceIOS
 

Additional Inherited Members

- Public Types inherited from CNetworkBase
enum  EMESSAGE { SERVICES_UP , SERVICES_DOWN }
 
- Static Public Member Functions inherited from CNetworkBase
static std::unique_ptr< CNetworkBaseGetNetwork ()
 
static int ParseHex (char *str, unsigned char *addr)
 
static std::string GetIpStr (const sockaddr *sa)
 IPv6/IPv4 compatible conversion of host IP address.
 
static std::string GetMaskByPrefixLength (uint8_t prefixLength)
 convert prefix length of IPv4 address to IP mask representation
 
- Public Attributes inherited from CNetworkBase
std::unique_ptr< CNetworkServicesm_services
 

Constructor & Destructor Documentation

◆ CNetworkIOS()

CNetworkIOS::CNetworkIOS ( )

◆ ~CNetworkIOS()

CNetworkIOS::~CNetworkIOS ( )
override

Member Function Documentation

◆ GetFirstConnectedInterface()

CNetworkInterface * CNetworkIOS::GetFirstConnectedInterface ( void )
overridevirtual

Reimplemented from CNetworkBase.

◆ GetInterfaceList()

std::vector< CNetworkInterface * > & CNetworkIOS::GetInterfaceList ( void )
overridevirtual

Implements CNetworkBase.

◆ GetNameServers()

std::vector< std::string > CNetworkIOS::GetNameServers ( void )
overridevirtual

Implements CNetworkBase.

◆ PingHost()

bool CNetworkIOS::PingHost ( unsigned long host,
unsigned int timeout_ms = 2000 )
overridevirtual
Todo
ARP table is not accessible from iOS11 on. Was initially deprecated in iOS7 WOL/WakeOnAccess can not work without MAC addresses, so was no need to implement this at this stage.

Implements CNetworkBase.

Friends And Related Symbol Documentation

◆ CNetworkInterfaceIOS

friend class CNetworkInterfaceIOS
friend

The documentation for this class was generated from the following files: