IBR-DTNSuite  0.10
ibrcommon::vinterface Class Reference

#include <vinterface.h>

Collaboration diagram for ibrcommon::vinterface:
Collaboration graph

Classes

class  interface_not_set
 

Public Member Functions

 vinterface ()
 
 vinterface (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 32 of file vinterface.cpp.

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

Definition at line 37 of file vinterface.cpp.

ibrcommon::vinterface::~vinterface ( )
virtual

Definition at line 42 of file vinterface.cpp.

Member Function Documentation

bool ibrcommon::vinterface::empty ( ) const

Definition at line 92 of file vinterface.cpp.

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

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

Definition at line 62 of file vinterface.cpp.

bool ibrcommon::vinterface::isAny ( ) const

Definition at line 57 of file vinterface.cpp.

References ANY.

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

bool ibrcommon::vinterface::isLoopback ( ) const

Definition at line 52 of file vinterface.cpp.

References LOOPBACK.

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

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

Definition at line 87 of file vinterface.cpp.

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

Definition at line 77 of file vinterface.cpp.

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

Definition at line 82 of file vinterface.cpp.

bool ibrcommon::vinterface::up ( ) const

Definition at line 73 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 dtn::daemon::Configuration::getAPIInterface(), and 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: