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

#include <NetworkPosix.h>

Inheritance diagram for CNetworkInterfacePosix:
CNetworkInterface CNetworkInterfaceFreebsd CNetworkInterfaceLinux CNetworkInterfaceMacOS

Public Member Functions

 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
 
virtual bool GetHostMacAddress (unsigned long host, std::string &mac) const =0
 
virtual std::string GetCurrentDefaultGateway (void) const =0
 

Protected Attributes

std::string m_interfaceName
 
CNetworkPosixm_network
 

Constructor & Destructor Documentation

◆ CNetworkInterfacePosix()

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

◆ ~CNetworkInterfacePosix()

virtual CNetworkInterfacePosix::~CNetworkInterfacePosix ( )
overridevirtualdefault

Member Function Documentation

◆ GetCurrentIPAddress()

std::string CNetworkInterfacePosix::GetCurrentIPAddress ( void ) const
overridevirtual

Implements CNetworkInterface.

◆ GetCurrentNetmask()

std::string CNetworkInterfacePosix::GetCurrentNetmask ( void ) const
overridevirtual

Implements CNetworkInterface.

◆ GetMacAddress()

std::string CNetworkInterfacePosix::GetMacAddress ( void ) const
overridevirtual

Implements CNetworkInterface.

◆ GetMacAddressRaw()

void CNetworkInterfacePosix::GetMacAddressRaw ( char rawMac[6]) const
overridevirtual

Implements CNetworkInterface.

◆ IsConnected()

bool CNetworkInterfacePosix::IsConnected ( void ) const
overridevirtual

Implements CNetworkInterface.

◆ IsEnabled()

bool CNetworkInterfacePosix::IsEnabled ( void ) const
overridevirtual

Implements CNetworkInterface.

Member Data Documentation

◆ m_interfaceName

std::string CNetworkInterfacePosix::m_interfaceName
protected

◆ m_network

CNetworkPosix* CNetworkInterfacePosix::m_network
protected

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