Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
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

Constructor & Destructor Documentation

◆ CNetworkInterfaceLinux()

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

◆ ~CNetworkInterfaceLinux()

CNetworkInterfaceLinux::~CNetworkInterfaceLinux ( )

Member Function Documentation

◆ GetCurrentDefaultGateway()

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

Implements CNetworkInterface.

◆ GetHostMacAddress()

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

Implements CNetworkInterface.

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