IBR-DTNSuite
0.12
|
#include <vinterface.h>
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< vaddress > | getAddresses (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" |
Definition at line 35 of file vinterface.h.
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.
|
virtual |
Definition at line 58 of file vinterface.cpp.
bool ibrcommon::vinterface::empty | ( | ) | const |
Definition at line 121 of file vinterface.cpp.
Referenced by getAddresses().
void ibrcommon::vinterface::eventNotify | ( | const LinkManagerEvent & | evt) |
const std::list< vaddress > ibrcommon::vinterface::getAddresses | ( | const std::string & | scope = "" ) | const |
Definition at line 96 of file vinterface.cpp.
References empty(), ibrcommon::LinkManager::getAddressList(), and ibrcommon::LinkManager::getInstance().
Referenced by ibrcommon::__copy_device_address(), dtn::api::ApiServer::ApiServer(), dtn::net::UDPDatagramService::bind(), dtn::net::UDPConvergenceLayer::componentUp(), dtn::net::UDPDatagramService::getServiceDescription(), dtn::net::TCPConvergenceLayer::onUpdateBeacon(), and up().
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.
const std::string ibrcommon::vinterface::toString | ( | ) | const |
Definition at line 62 of file vinterface.cpp.
Referenced by dtn::net::UDPDatagramService::bind(), dtn::net::IPNDAgent::bind(), dtn::net::LOWPANConvergenceLayer::componentUp(), dtn::net::DatagramConvergenceLayer::componentUp(), ibrcommon::lowpansocket::getAddress(), ibrcommon::Win32LinkManager::getAddressList(), ibrcommon::NetLinkManager::getAddressList(), dtn::net::P2PDialupEvent::getMessage(), dtn::daemon::Configuration::params(), ibrcommon::rtnl_addr_get_local_vaddress(), ibrcommon::LinkMonitor::run(), and ibrcommon::LinkEvent::toString().
bool ibrcommon::vinterface::up | ( | ) | const |
Definition at line 102 of file vinterface.cpp.
References getAddresses().
|
static |
Definition at line 46 of file vinterface.h.
Referenced by isAny().
|
static |
Definition at line 45 of file vinterface.h.
Referenced by dtn::daemon::Configuration::getAPIInterface(), and isLoopback().