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

#include <NetworkAndroid.h>

Inheritance diagram for CNetworkAndroid:
CNetworkBase jni::CJNIXBMCConnectivityManagerNetworkCallback

Public Member Functions

 CNetworkAndroid ()
 
 ~CNetworkAndroid () override
 
bool GetHostName (std::string &hostname) override
 
std::vector< CNetworkInterface * > & GetInterfaceList () override
 
CNetworkInterfaceGetFirstConnectedInterface () override
 
std::vector< std::string > GetNameServers () override
 
bool PingHost (unsigned long remote_ip, unsigned int timeout_ms=2000) override
 
void onAvailable (const CJNINetwork network) override
 
void onLost (const CJNINetwork network) 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 ()
 
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 ()
 
- Public Member Functions inherited from jni::CJNIXBMCConnectivityManagerNetworkCallback
 CJNIXBMCConnectivityManagerNetworkCallback ()
 
 ~CJNIXBMCConnectivityManagerNetworkCallback () override
 

Protected Member Functions

void RetrieveInterfaces ()
 

Protected Attributes

std::vector< CNetworkInterface * > m_interfaces
 
std::vector< CNetworkInterface * > m_oldInterfaces
 
CCriticalSection m_refreshMutex
 
std::unique_ptr< CNetworkInterfacem_defaultInterface
 

Friends

class CXBMCApp
 

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
 
- Static Public Member Functions inherited from jni::CJNIXBMCConnectivityManagerNetworkCallback
static void RegisterNatives (JNIEnv *env)
 
- Public Attributes inherited from CNetworkBase
std::unique_ptr< CNetworkServicesm_services
 
- Static Protected Member Functions inherited from jni::CJNIXBMCConnectivityManagerNetworkCallback
static void _onAvailable (JNIEnv *env, jobject thiz, jobject network)
 
static void _onLost (JNIEnv *env, jobject thiz, jobject network)
 

Constructor & Destructor Documentation

◆ CNetworkAndroid()

CNetworkAndroid::CNetworkAndroid ( )

◆ ~CNetworkAndroid()

CNetworkAndroid::~CNetworkAndroid ( )
override

Member Function Documentation

◆ GetFirstConnectedInterface()

CNetworkInterface * CNetworkAndroid::GetFirstConnectedInterface ( void )
overridevirtual

Reimplemented from CNetworkBase.

◆ GetHostName()

bool CNetworkAndroid::GetHostName ( std::string & hostname)
overridevirtual

Reimplemented from CNetworkBase.

◆ GetInterfaceList()

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

Implements CNetworkBase.

◆ GetNameServers()

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

Implements CNetworkBase.

◆ onAvailable()

void CNetworkAndroid::onAvailable ( const CJNINetwork network)
overridevirtual

◆ onLost()

void CNetworkAndroid::onLost ( const CJNINetwork network)
overridevirtual

◆ PingHost() [1/2]

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

◆ PingHost() [2/2]

bool CNetworkAndroid::PingHost ( unsigned long remote_ip,
unsigned int timeout_ms = 2000 )
overridevirtual

Implements CNetworkBase.

◆ RetrieveInterfaces()

void CNetworkAndroid::RetrieveInterfaces ( )
protected

Friends And Related Symbol Documentation

◆ CXBMCApp

friend class CXBMCApp
friend

Member Data Documentation

◆ m_defaultInterface

std::unique_ptr<CNetworkInterface> CNetworkAndroid::m_defaultInterface
protected

◆ m_interfaces

std::vector<CNetworkInterface*> CNetworkAndroid::m_interfaces
protected

◆ m_oldInterfaces

std::vector<CNetworkInterface*> CNetworkAndroid::m_oldInterfaces
protected

◆ m_refreshMutex

CCriticalSection CNetworkAndroid::m_refreshMutex
protected

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