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

#include <NetworkLinux.h>

Inheritance diagram for CNetworkInterfaceLinux:
CNetworkInterfacePosix CNetworkInterface

Public Member Functions

 CNetworkInterfaceLinux (CNetworkPosix *network, std::string interfaceName, char interfaceMacAddrRaw[6])
 
 ~CNetworkInterfaceLinux () 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

◆ CNetworkInterfaceLinux()

CNetworkInterfaceLinux::CNetworkInterfaceLinux ( CNetworkPosix * network,
std::string interfaceName,
char interfaceMacAddrRaw[6] )

◆ ~CNetworkInterfaceLinux()

CNetworkInterfaceLinux::~CNetworkInterfaceLinux ( )
overridedefault

Member Function Documentation

◆ GetCurrentDefaultGateway()

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

Implements CNetworkInterface.

◆ GetHostMacAddress()

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

Implements CNetworkInterface.


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