Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
CNetworkInterfaceOsx Class Reference

#include <NetworkOsx.h>

Inheritance diagram for CNetworkInterfaceOsx:
CNetworkInterfacePosix CNetworkInterface

Public Member Functions

 CNetworkInterfaceOsx (CNetworkPosix *network, const std::string &interfaceName, char interfaceMacAddrRaw[6])
 
 ~CNetworkInterfaceOsx () override=default
 
std::string GetCurrentDefaultGateway () const override
 
bool GetHostMacAddress (unsigned long host, std::string &mac) const override
 
- Public Member Functions inherited from CNetworkInterfacePosix
 CNetworkInterfacePosix (CNetworkPosix *network, std::string interfaceName, char interfaceMacAddrRaw[6])
 
virtual ~CNetworkInterfacePosix () override=default
 
bool IsEnabled () const override
 
bool IsConnected () const override
 
std::string GetCurrentIPAddress () const override
 
std::string GetCurrentNetmask () const override
 
std::string GetMacAddress () const override
 
void GetMacAddressRaw (char rawMac[6]) const override
 
- Public Member Functions inherited from CNetworkInterface
virtual ~CNetworkInterface ()=default
 

Additional Inherited Members

- Protected Attributes inherited from CNetworkInterfacePosix
std::string m_interfaceName
 
CNetworkPosixm_network
 

Constructor & Destructor Documentation

◆ CNetworkInterfaceOsx()

CNetworkInterfaceOsx::CNetworkInterfaceOsx ( CNetworkPosix network,
const std::string &  interfaceName,
char  interfaceMacAddrRaw[6] 
)

◆ ~CNetworkInterfaceOsx()

CNetworkInterfaceOsx::~CNetworkInterfaceOsx ( )
overridedefault

Member Function Documentation

◆ GetCurrentDefaultGateway()

std::string CNetworkInterfaceOsx::GetCurrentDefaultGateway ( void  ) const
overridevirtual

Implements CNetworkInterface.

◆ GetHostMacAddress()

bool CNetworkInterfaceOsx::GetHostMacAddress ( unsigned long  host,
std::string &  mac 
) const
overridevirtual

Implements CNetworkInterface.


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