conexus logo

Conexus::Network::Device Class Reference

#include <network_device.h>

List of all members.

Public Member Functions

 Device (const std::string &name)
 Device (int index)
virtual ~Device ()
int index ()
void set_index (int index)
std::string name ()
void set_name (const std::string &name)
bool is_up ()
bool has_broadcast ()
bool is_debug ()
bool is_loopback ()
bool is_point_to_point ()
bool is_running ()
bool no_arp ()
bool is_promiscuous ()
bool no_trailers ()
bool receives_all_multicast ()
bool is_master ()
bool is_slave ()
bool is_multicast_capable ()
bool port_selectable ()
bool auto_media_active ()
bool is_dynamic ()
int mtu ()
void set_mtu (int mtu)

Protected Attributes

std::string m_name
int m_index
struct ifreq m_ifreq


Detailed Description

Todo:
TODO add set functions for flags
Author:
Rick L Vinyard Jr

Constructor & Destructor Documentation

Conexus::Network::Device::Device ( const std::string &  name  ) 

Conexus::Network::Device::Device ( int  index  ) 

Conexus::Network::Device::~Device (  )  [virtual]


Member Function Documentation

bool Conexus::Network::Device::auto_media_active (  ) 

bool Conexus::Network::Device::has_broadcast (  ) 

int Conexus::Network::Device::index (  ) 

bool Conexus::Network::Device::is_debug (  ) 

bool Conexus::Network::Device::is_dynamic (  ) 

bool Conexus::Network::Device::is_loopback (  ) 

bool Conexus::Network::Device::is_master (  ) 

bool Conexus::Network::Device::is_multicast_capable (  ) 

bool Conexus::Network::Device::is_point_to_point (  ) 

bool Conexus::Network::Device::is_promiscuous (  ) 

bool Conexus::Network::Device::is_running (  ) 

bool Conexus::Network::Device::is_slave (  ) 

bool Conexus::Network::Device::is_up (  ) 

int Conexus::Network::Device::mtu (  ) 

std::string Conexus::Network::Device::name (  ) 

References m_name.

bool Conexus::Network::Device::no_arp (  ) 

bool Conexus::Network::Device::no_trailers (  ) 

bool Conexus::Network::Device::port_selectable (  ) 

bool Conexus::Network::Device::receives_all_multicast (  ) 

void Conexus::Network::Device::set_index ( int  index  ) 

void Conexus::Network::Device::set_mtu ( int  mtu  ) 

void Conexus::Network::Device::set_name ( const std::string &  name  ) 

References m_ifreq, m_index, and m_name.


Member Data Documentation

struct ifreq Conexus::Network::Device::m_ifreq [read, protected]

Referenced by index(), set_index(), and set_name().

std::string Conexus::Network::Device::m_name [protected]


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

Generated on Wed Jul 8 15:51:28 2009 for conexus by doxygen 1.5.8