Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CNetworkInterfaceWin32 Class Reference

#include <NetworkWin32.h>

Inheritance diagram for CNetworkInterfaceWin32:
CNetworkInterface

Public Member Functions

 CNetworkInterfaceWin32 (CNetworkWin32 *network, const IP_ADAPTER_ADDRESSES &adapter)
 
 ~CNetworkInterfaceWin32 (void) override
 
const std::string & GetName (void) const override
 
bool IsEnabled (void) const override
 
bool IsConnected (void) const override
 
bool IsWireless (void) const override
 
std::string GetMacAddress (void) const override
 
void GetMacAddressRaw (char rawMac[6]) const override
 
bool GetHostMacAddress (unsigned long host, std::string &mac) const override
 
bool GetHostMacAddress (const struct sockaddr &host, std::string &mac) const
 
std::string GetCurrentIPAddress () const override
 
std::string GetCurrentNetmask () const override
 
std::string GetCurrentDefaultGateway (void) const override
 
std::string GetCurrentWirelessEssId (void) const override
 
void GetSettings (NetworkAssignment &assignment, std::string &ipAddress, std::string &networkMask, std::string &defaultGateway, std::string &essId, std::string &key, EncMode &encryptionMode) const override
 
void SetSettings (const NetworkAssignment &assignment, const std::string &ipAddress, const std::string &networkMask, const std::string &defaultGateway, const std::string &essId, const std::string &key, const EncMode &encryptionMode) override
 
std::vector< NetworkAccessPointGetAccessPoints (void) const override
 
- Public Member Functions inherited from CNetworkInterface
virtual ~CNetworkInterface ()=default
 

Constructor & Destructor Documentation

◆ CNetworkInterfaceWin32()

CNetworkInterfaceWin32::CNetworkInterfaceWin32 ( CNetworkWin32 network,
const IP_ADAPTER_ADDRESSES &  adapter 
)

◆ ~CNetworkInterfaceWin32()

CNetworkInterfaceWin32::~CNetworkInterfaceWin32 ( void  )
override

Member Function Documentation

◆ GetAccessPoints()

std::vector< NetworkAccessPoint > CNetworkInterfaceWin32::GetAccessPoints ( void  ) const
overridevirtual
Todo:
implement

Implements CNetworkInterface.

◆ GetCurrentDefaultGateway()

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

Implements CNetworkInterface.

◆ GetCurrentIPAddress()

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

Implements CNetworkInterface.

◆ GetCurrentNetmask()

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

Implements CNetworkInterface.

◆ GetCurrentWirelessEssId()

std::string CNetworkInterfaceWin32::GetCurrentWirelessEssId ( void  ) const
overridevirtual

Implements CNetworkInterface.

◆ GetHostMacAddress() [1/2]

bool CNetworkInterfaceWin32::GetHostMacAddress ( const struct sockaddr &  host,
std::string &  mac 
) const

◆ GetHostMacAddress() [2/2]

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

Implements CNetworkInterface.

◆ GetMacAddress()

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

Implements CNetworkInterface.

◆ GetMacAddressRaw()

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

Implements CNetworkInterface.

◆ GetName()

const std::string & CNetworkInterfaceWin32::GetName ( void  ) const
overridevirtual

Implements CNetworkInterface.

◆ GetSettings()

void CNetworkInterfaceWin32::GetSettings ( NetworkAssignment assignment,
std::string &  ipAddress,
std::string &  networkMask,
std::string &  defaultGateway,
std::string &  essId,
std::string &  key,
EncMode encryptionMode 
) const
overridevirtual
Todo:
get the key (WlanGetProfile, CryptUnprotectData?)

Implements CNetworkInterface.

◆ IsConnected()

bool CNetworkInterfaceWin32::IsConnected ( void  ) const
overridevirtual

Implements CNetworkInterface.

◆ IsEnabled()

bool CNetworkInterfaceWin32::IsEnabled ( void  ) const
overridevirtual

Implements CNetworkInterface.

◆ IsWireless()

bool CNetworkInterfaceWin32::IsWireless ( void  ) const
overridevirtual

Implements CNetworkInterface.

◆ SetSettings()

void CNetworkInterfaceWin32::SetSettings ( const NetworkAssignment assignment,
const std::string &  ipAddress,
const std::string &  networkMask,
const std::string &  defaultGateway,
const std::string &  essId,
const std::string &  key,
const EncMode encryptionMode 
)
overridevirtual

Implements CNetworkInterface.


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