IBR-DTNSuite  0.12
ibrcommon::vinterface Class Reference

#include <vinterface.h>

Collaboration diagram for ibrcommon::vinterface:
Collaboration graph

Classes

class  interface_not_set
 

Public Member Functions

 vinterface ()
 
 vinterface (const std::string &name)
 
virtual ~vinterface ()
 
bool isLoopback () const
 
bool isAny () const
 
uint32_t getIndex () const
 
const std::list< vaddressgetAddresses (const std::string &scope="") const
 
const std::string toString () const
 
bool empty () const
 
bool up () const
 
bool operator< (const vinterface &obj) const
 
bool operator== (const vinterface &obj) const
 
bool operator!= (const vinterface &obj) const
 
void eventNotify (const LinkManagerEvent &evt)
 

Static Public Attributes

static const std::string LOOPBACK = "loopback"
 
static const std::string ANY = "any"
 

Detailed Description

Definition at line 35 of file vinterface.h.

Constructor & Destructor Documentation

ibrcommon::vinterface::vinterface ( )

Definition at line 41 of file vinterface.cpp.

ibrcommon::vinterface::vinterface ( const std::string &  name)

Definition at line 46 of file vinterface.cpp.

ibrcommon::vinterface::~vinterface ( )
virtual

Definition at line 58 of file vinterface.cpp.

Member Function Documentation

bool ibrcommon::vinterface::empty ( ) const

Definition at line 121 of file vinterface.cpp.

Referenced by getAddresses().

void ibrcommon::vinterface::eventNotify ( const LinkManagerEvent &  evt)
uint32_t ibrcommon::vinterface::getIndex ( ) const

Definition at line 85 of file vinterface.cpp.

bool ibrcommon::vinterface::isAny ( ) const

Definition at line 80 of file vinterface.cpp.

References ANY.

Referenced by dtn::api::ApiServer::ApiServer(), and dtn::net::UDPDatagramService::bind().

bool ibrcommon::vinterface::isLoopback ( ) const

Definition at line 75 of file vinterface.cpp.

References LOOPBACK.

Referenced by dtn::api::ApiServer::ApiServer().

bool ibrcommon::vinterface::operator!= ( const vinterface obj) const

Definition at line 116 of file vinterface.cpp.

bool ibrcommon::vinterface::operator< ( const vinterface obj) const

Definition at line 106 of file vinterface.cpp.

bool ibrcommon::vinterface::operator== ( const vinterface obj) const

Definition at line 111 of file vinterface.cpp.

bool ibrcommon::vinterface::up ( ) const

Definition at line 102 of file vinterface.cpp.

References getAddresses().

Here is the call graph for this function:

Member Data Documentation

const std::string ibrcommon::vinterface::ANY = "any"
static

Definition at line 46 of file vinterface.h.

Referenced by isAny().

const std::string ibrcommon::vinterface::LOOPBACK = "loopback"
static

Definition at line 45 of file vinterface.h.

Referenced by dtn::daemon::Configuration::getAPIInterface(), and isLoopback().


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