IBR-DTNSuite
0.12
|
#include <PosixLinkManager.h>
Public Member Functions | |
PosixLinkManager () | |
virtual | ~PosixLinkManager () |
void | up () throw () |
void | down () throw () |
const vinterface | getInterface (int index) const |
const std::list< vaddress > | getAddressList (const vinterface &iface, const std::string &scope="") |
virtual void | addEventListener (const vinterface &iface, LinkManager::EventCallback *cb) throw () |
virtual void | removeEventListener (const vinterface &, LinkManager::EventCallback *) throw () |
virtual void | removeEventListener (LinkManager::EventCallback *) throw () |
Public Member Functions inherited from ibrcommon::LinkManager | |
virtual | ~LinkManager () |
void | raiseEvent (const LinkEvent &lme) |
std::set< vinterface > | getMonitoredInterfaces () |
Additional Inherited Members | |
Static Public Member Functions inherited from ibrcommon::LinkManager | |
static LinkManager & | getInstance () |
static void | initialize () |
static void | setLinkRequestInterval (size_t interval) |
static size_t | getLinkRequestInterval () |
Protected Types inherited from ibrcommon::LinkManager | |
typedef std::set < LinkManager::EventCallback * > | callback_set |
typedef std::map < ibrcommon::vinterface, callback_set > | listener_map |
Protected Attributes inherited from ibrcommon::LinkManager | |
ibrcommon::Mutex | _listener_mutex |
listener_map | _listener |
Static Protected Attributes inherited from ibrcommon::LinkManager | |
static size_t | _link_request_interval = 5000 |
Definition at line 19 of file PosixLinkManager.h.
ibrcommon::PosixLinkManager::PosixLinkManager | ( | ) |
Definition at line 29 of file PosixLinkManager.cpp.
|
virtual |
Definition at line 33 of file PosixLinkManager.cpp.
References down().
|
virtual |
Reimplemented from ibrcommon::LinkManager.
Definition at line 129 of file PosixLinkManager.cpp.
References ibrcommon::LinkManager::addEventListener().
|
virtual |
Reimplemented from ibrcommon::LinkManager.
Definition at line 43 of file PosixLinkManager.cpp.
References ibrcommon::JoinableThread::join(), and ibrcommon::JoinableThread::stop().
Referenced by ~PosixLinkManager().
|
virtual |
Implements ibrcommon::LinkManager.
Definition at line 76 of file PosixLinkManager.cpp.
References ibrcommon::vaddress::SCOPE_GLOBAL, and ibrcommon::vaddress::SCOPE_LINKLOCAL.
|
virtual |
Implements ibrcommon::LinkManager.
Definition at line 49 of file PosixLinkManager.cpp.
|
virtual |
Reimplemented from ibrcommon::LinkManager.
Definition at line 138 of file PosixLinkManager.cpp.
References ibrcommon::LinkManager::removeEventListener().
|
virtual |
Reimplemented from ibrcommon::LinkManager.
Definition at line 147 of file PosixLinkManager.cpp.
References ibrcommon::LinkManager::removeEventListener().
|
virtual |
Reimplemented from ibrcommon::LinkManager.
Definition at line 38 of file PosixLinkManager.cpp.
References ibrcommon::JoinableThread::start().