AnCH Framework 0.1
Another C++ Hack Framework
 
Loading...
Searching...
No Matches
anch::device::Network Class Reference

#include <network.hpp>

+ Collaboration diagram for anch::device::Network:

Public Member Functions

virtual ~Network ()
 

Static Public Member Functions

static const anch::device::NetworkInterfacegetInterface (const std::string &ifName)
 
static const std::map< std::string, anch::device::NetworkInterface > & getInterfaces ()
 
static void reload ()
 

Detailed Description

Network device utilities class

Author
Vincent Lachenal

Constructor & Destructor Documentation

◆ ~Network()

virtual anch::device::Network::~Network ( )
virtual

Network configuration destructor

Member Function Documentation

◆ getInterface()

static const anch::device::NetworkInterface * anch::device::Network::getInterface ( const std::string & ifName)
static

Retrieve network interface by its name.

Parameters
ifNamethe interface name
Returns
the interface if found, NULL otherwise
Exceptions
anch::device::DeviceExceptionNetwork interfaces error

◆ getInterfaces()

static const std::map< std::string, anch::device::NetworkInterface > & anch::device::Network::getInterfaces ( )
static

Retrieve all network interfaces.

Returns
the network interfaces
Exceptions
anch::device::DeviceExceptionNetwork interfaces error

◆ reload()

static void anch::device::Network::reload ( )
static

Reload network interfaces

Exceptions
anch::device::DeviceExceptionNetwork interfaces error

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