Open Lighting Architecture  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::rdm::NetworkManager Class Reference

Detailed Description

A NetworkManager which reflects the actual host network configuration.

Inheritance diagram for ola::rdm::NetworkManager:
ola::rdm::NetworkManagerInterface

Public Member Functions

const
ola::network::InterfacePicker
GetInterfacePicker () const
rdm_dhcp_status GetDHCPStatus (const ola::network::Interface &iface) const
bool GetIPV4DefaultRoute (ola::network::IPV4Address *default_route) const
const std::string GetHostname () const
const std::string GetDomainName () const
bool GetNameServers (std::vector< ola::network::IPV4Address > *name_servers) const

Member Function Documentation

rdm_dhcp_status ola::rdm::NetworkManager::GetDHCPStatus ( const ola::network::Interface iface) const
virtual

Get the DHCP status of an interface

Parameters
ifacethe interface to check the DHCP status of
Returns
One of DHCP_STATUS_ACTIVE, DHCP_STATUS_INACTIVE or DHCP_STATUS_UNKNOWN.

Implements ola::rdm::NetworkManagerInterface.

const string ola::rdm::NetworkManager::GetDomainName ( ) const
virtual

Get the domain name

Implements ola::rdm::NetworkManagerInterface.

const string ola::rdm::NetworkManager::GetHostname ( ) const
virtual

Get the hostname

Implements ola::rdm::NetworkManagerInterface.

const InterfacePicker * ola::rdm::NetworkManager::GetInterfacePicker ( ) const
virtual

Get the interface picker

Implements ola::rdm::NetworkManagerInterface.

bool ola::rdm::NetworkManager::GetIPV4DefaultRoute ( ola::network::IPV4Address default_route) const
virtual

Get the IPv4 default route

Parameters
[out]default_routethe machine's default route as an IPV4Address object
Returns
true if we managed to fetch the default route, false otherwise
Note
if it manages to fetch the route information and there isn't a route, it will return the special wildcard address, which can be tested for with IsWildcard().

Implements ola::rdm::NetworkManagerInterface.

bool ola::rdm::NetworkManager::GetNameServers ( std::vector< ola::network::IPV4Address > *  name_servers) const
virtual

Get name servers

Implements ola::rdm::NetworkManagerInterface.


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