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

#include <NetworkWin32.h>

Inheritance diagram for CNetworkWin32:
CNetworkBase

Public Member Functions

 CNetworkWin32 ()
 
 ~CNetworkWin32 (void) override
 
virtual std::vector< CNetworkInterface * > & GetInterfaceList (void) override
 
bool PingHost (unsigned long host, unsigned int timeout_ms=2000) override
 
bool PingHost (const struct sockaddr &host, unsigned int timeout_ms=2000)
 
std::vector< std::string > GetNameServers (void) override
 
bool PingHost (unsigned long host, unsigned short port, unsigned int timeout_ms=2000, bool readability_check=false)
 
- Public Member Functions inherited from CNetworkBase
 CNetworkBase ()
 
virtual ~CNetworkBase ()
 
CNetworkServicesGetServices ()
 
virtual bool GetHostName (std::string &hostname)
 
virtual CNetworkInterfaceGetFirstConnectedInterface (void)
 
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 CNetworkInterfaceWin32
 

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

◆ CNetworkWin32()

CNetworkWin32::CNetworkWin32 ( )

◆ ~CNetworkWin32()

CNetworkWin32::~CNetworkWin32 ( void )
override

Member Function Documentation

◆ GetInterfaceList()

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

Implements CNetworkBase.

◆ GetNameServers()

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

Implements CNetworkBase.

◆ PingHost() [1/3]

bool CNetworkWin32::PingHost ( const struct sockaddr & host,
unsigned int timeout_ms = 2000 )

◆ PingHost() [2/3]

bool CNetworkWin32::PingHost ( unsigned long host,
unsigned int timeout_ms = 2000 )
overridevirtual

Implements CNetworkBase.

◆ PingHost() [3/3]

bool CNetworkBase::PingHost ( unsigned long host,
unsigned short port,
unsigned int timeout_ms = 2000,
bool readability_check = false )

Friends And Related Symbol Documentation

◆ CNetworkInterfaceWin32

friend class CNetworkInterfaceWin32
friend

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