|
IBR-DTNSuite
0.12
|
#include <LinkMonitor.h>


Public Member Functions | |
| LinkMonitor (LinkManager &lm) | |
| virtual | ~LinkMonitor () |
| void | add (const ibrcommon::vinterface &iface) throw () |
| void | remove () throw () |
Public Member Functions inherited from ibrcommon::JoinableThread | |
| virtual | ~JoinableThread ()=0 |
| void | join (void) throw (ThreadException) |
| bool | isRunning (void) |
| void | start (int priority=0) throw (ThreadException) |
| void | stop () throw () |
Protected Member Functions | |
| void | run () throw () |
| void | __cancellation () throw () |
Protected Member Functions inherited from ibrcommon::JoinableThread | |
| JoinableThread (size_t size=DEFAULT_STACKSIZE) | |
Protected Member Functions inherited from ibrcommon::Thread | |
| virtual | ~Thread ()=0 |
| void | reset () throw (ThreadException) |
| virtual void | setup (void) throw () |
| virtual void | finally (void) throw () |
| bool | isFinalized () throw () |
| bool | operator== (const ibrcommon::Thread &other) |
| Thread (size_t stack=DEFAULT_STACKSIZE) | |
| int | kill (int sig) |
| void | cancel () throw () |
Additional Inherited Members | |
Static Protected Member Functions inherited from ibrcommon::Thread | |
| static size_t | getNumberOfProcessors () |
| static void | yield (void) |
| static void | sleep (time_t timeout) |
| static void | concurrency (int level) |
| static bool | equal (pthread_t thread1, pthread_t thread2) |
| static void * | __execute__ (void *obj) throw () |
Definition at line 38 of file LinkMonitor.h.
| ibrcommon::LinkMonitor::LinkMonitor | ( | LinkManager & | lm) |
Definition at line 34 of file LinkMonitor.cpp.
|
virtual |
Definition at line 39 of file LinkMonitor.cpp.
References ibrcommon::JoinableThread::join().

|
protectedvirtual | |||||||||||||
Implements ibrcommon::Thread.
Definition at line 165 of file LinkMonitor.cpp.
References IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, and ibrcommon::Conditional::signal().

| void ibrcommon::LinkMonitor::add | ( | const ibrcommon::vinterface & | iface) | ||
| throw | ( | ||||
| ) | |||||
Definition at line 45 of file LinkMonitor.cpp.
| void ibrcommon::LinkMonitor::remove | ( | ) | ||
| throw | ( | |||
| ) | ||||
Definition at line 57 of file LinkMonitor.cpp.
References ibrcommon::LinkManager::getMonitoredInterfaces().

|
protectedvirtual | |||||||||||||
Abstract interface for thread context run method.
Implements ibrcommon::Thread.
Definition at line 75 of file LinkMonitor.cpp.
References ibrcommon::LinkEvent::ACTION_ADDRESS_ADDED, ibrcommon::LinkEvent::ACTION_ADDRESS_REMOVED, ibrcommon::vaddress::address(), ibrcommon::Conditional::ConditionalAbortException::COND_TIMEOUT, ibrcommon::LinkManager::getAddressList(), ibrcommon::LinkManager::getLinkRequestInterval(), ibrcommon::LinkManager::getMonitoredInterfaces(), IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, ibrcommon::LinkManager::raiseEvent(), ibrcommon::Conditional::ConditionalAbortException::reason, ibrcommon::vinterface::toString(), ibrcommon::Conditional::wait(), and ibrcommon::Thread::yield().
