IBR-DTNSuite
0.10
|
#include <vinterface.h>
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< 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 32 of file vinterface.cpp.
ibrcommon::vinterface::vinterface | ( | std::string | name | ) |
Definition at line 37 of file vinterface.cpp.
|
virtual |
Definition at line 42 of file vinterface.cpp.
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 | ) |
const std::list< vaddress > ibrcommon::vinterface::getAddresses | ( | const std::string & | scope = "" | ) | const |
Definition at line 67 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(), up(), and dtn::net::TCPConvergenceLayer::update().
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.
const std::string ibrcommon::vinterface::toString | ( | ) | const |
Definition at line 46 of file vinterface.cpp.
Referenced by dtn::net::UDPDatagramService::bind(), dtn::net::IPNDAgent::bind(), dtn::net::DatagramConvergenceLayer::componentUp(), dtn::net::LOWPANConvergenceLayer::componentUp(), ibrcommon::lowpansocket::getAddress(), ibrcommon::NetLinkManager::getAddressList(), dtn::net::P2PDialupEvent::getMessage(), ibrcommon::rtnl_addr_get_local_vaddress(), and ibrcommon::LinkEvent::toString().
bool ibrcommon::vinterface::up | ( | ) | const |
Definition at line 73 of file vinterface.cpp.
References getAddresses().
|
static |
Definition at line 46 of file vinterface.h.
Referenced by dtn::daemon::Configuration::getAPIInterface(), and isAny().
|
static |
Definition at line 45 of file vinterface.h.
Referenced by dtn::daemon::Configuration::getAPIInterface(), and isLoopback().