Wired interface base class. More...
#include <senf/Ext/NetEmu/InterfaceAPI.hh>
Public Types | |
typedef TypedInterfaceDecorator< WiredInterface, Interface::Decorator > | Decorator |
Public Types inherited from senf::emu::Interface | |
typedef InterfaceDecorator | Decorator |
Interface base class specific decorator type More... | |
Protected Member Functions | |
void | init () |
Protected Member Functions inherited from senf::emu::Interface | |
Interface () | |
void | init () |
Initialize interface. More... | |
virtual void | v_enable ()=0 |
Called to enable interface. More... | |
virtual void | v_disable ()=0 |
Called to disable interface. More... | |
virtual bool | v_enabled () const =0 |
Return true if interface is enabled. More... | |
virtual void | v_id (MACAddress const &id)=0 |
Called to set interface mac address. More... | |
virtual MACAddress | v_id () const =0 |
Return the interface mac address. More... | |
virtual boost::uint8_t | v_linkTypeId () const =0 |
virtual std::string const & | v_device () const =0 |
Additional Inherited Members | |
Public Member Functions inherited from senf::emu::Interface | |
virtual | ~Interface () |
bool | canTransmit () const |
true , if interface is transmit capable More... | |
bool | canReceive () const |
true , if interface is receive capable More... | |
void | enable () |
Enable interface (aka ifconfig up ) More... | |
void | disable () |
Disable interface (aka ifconfig down ) More... | |
bool | enabled () const |
true , if interface enabled More... | |
unsigned | index () const |
Get interface index. More... | |
void | id (MACAddress const &eui) |
Change interface MAC. More... | |
MACAddress const & | id () const |
Get interface MAC Address. More... | |
void | deviceId (InterfaceDeviceId id) |
InterfaceDeviceId | deviceId () const |
std::string const & | device () const |
boost::uint8_t | linkTypeId () const |
std::string | interfaceTypeName () const |
console::DirectoryNode & | consoleDir () const |
Access interface console directory. More... | |
console::DirectoryNode & | statisticsDir () const |
Access the interface statistics directory. More... | |
template<class Stat > | |
senf::Statistics & | registerStatistics (std::string name, Stat &stat) |
Register statistics source. More... | |
boost::optional< senf::Statistics & > | statistic (std::string const &name) |
Get registered statistic. More... | |
void | startStatistics (ClockService::clock_type inverval) |
Start statistics generation. More... | |
Static Public Member Functions inherited from senf::emu::Interface | |
static unsigned | nodeId () |
Get unique node id. More... | |
static void | nodeId (unsigned id) |
Set unique node id. More... | |
Public Attributes inherited from senf::emu::Interface | |
boost::signals2::signal< void(Interface &, MACAddress)> | idChangedSignal |
Wired interface base class.
Definition at line 388 of file InterfaceAPI.hh.
typedef TypedInterfaceDecorator<WiredInterface, Interface::Decorator> senf::emu::WiredInterface::Decorator |
Definition at line 393 of file InterfaceAPI.hh.
|
protected |