IBR-DTNSuite  0.12
ibrcommon::LinkMonitor Class Reference

#include <LinkMonitor.h>

Inheritance diagram for ibrcommon::LinkMonitor:
Inheritance graph
Collaboration diagram for ibrcommon::LinkMonitor:
Collaboration graph

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 ()
 

Detailed Description

Definition at line 38 of file LinkMonitor.h.

Constructor & Destructor Documentation

ibrcommon::LinkMonitor::LinkMonitor ( LinkManager lm)

Definition at line 34 of file LinkMonitor.cpp.

ibrcommon::LinkMonitor::~LinkMonitor ( )
virtual

Definition at line 39 of file LinkMonitor.cpp.

References ibrcommon::JoinableThread::join().

Here is the call graph for this function:

Member Function Documentation

void ibrcommon::LinkMonitor::__cancellation ( )
throw (
)
protectedvirtual

Implements ibrcommon::Thread.

Definition at line 165 of file LinkMonitor.cpp.

References IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, and ibrcommon::Conditional::signal().

Here is the call graph for this function:

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().

Here is the call graph for this function:


The documentation for this class was generated from the following files: