IBR-DTNSuite  0.10
ibrcommon::NetLinkManager Class Reference

#include <NetLinkManager.h>

Inheritance diagram for ibrcommon::NetLinkManager:
Inheritance graph
Collaboration diagram for ibrcommon::NetLinkManager:
Collaboration graph

Classes

class  parse_exception
 

Public Member Functions

virtual ~NetLinkManager ()
 
void up () throw ()
 
void down () throw ()
 
const vinterface getInterface (int index) const
 
const std::list< vaddressgetAddressList (const vinterface &iface, const std::string &scope="")
 
- Public Member Functions inherited from ibrcommon::LinkManager
virtual ~LinkManager ()
 
virtual void addEventListener (const vinterface &, LinkManager::EventCallback *) throw ()
 
virtual void removeEventListener (const vinterface &, LinkManager::EventCallback *) throw ()
 
virtual void removeEventListener (LinkManager::EventCallback *) throw ()
 
void raiseEvent (const LinkEvent &lme)
 
- 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 ()
 

Friends

class LinkManager
 

Additional Inherited Members

- Static Public Member Functions inherited from ibrcommon::LinkManager
static LinkManagergetInstance ()
 
static void initialize ()
 
- 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 ()
 
- Protected Attributes inherited from ibrcommon::LinkManager
ibrcommon::Mutex _listener_mutex
 
std::map
< ibrcommon::vinterface,
std::set
< LinkManager::EventCallback * > > 
_listener
 

Detailed Description

Definition at line 39 of file NetLinkManager.h.

Constructor & Destructor Documentation

ibrcommon::NetLinkManager::~NetLinkManager ( )
virtual

Definition at line 334 of file NetLinkManager.cpp.

Member Function Documentation

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

Implements ibrcommon::Thread.

Definition at line 365 of file NetLinkManager.cpp.

References _running.

void ibrcommon::NetLinkManager::down ( ) throw ()
virtual

Reimplemented from ibrcommon::LinkManager.

Definition at line 356 of file NetLinkManager.cpp.

const std::list< vaddress > ibrcommon::NetLinkManager::getAddressList ( const vinterface iface,
const std::string &  scope = "" 
)
virtual

Implements ibrcommon::LinkManager.

Definition at line 392 of file NetLinkManager.cpp.

References ibrcommon::add_addr_to_list(), and ibrcommon::vinterface::toString().

Here is the call graph for this function:

const vinterface ibrcommon::NetLinkManager::getInterface ( int  index) const
virtual

Implements ibrcommon::LinkManager.

Definition at line 418 of file NetLinkManager.cpp.

void ibrcommon::NetLinkManager::run ( ) throw ()
protectedvirtual

Abstract interface for thread context run method.

Implements ibrcommon::Thread.

Definition at line 371 of file NetLinkManager.cpp.

References _running, ibrcommon::LogLevel::error, IBRCOMMON_LOGGER_ENDL, and IBRCOMMON_LOGGER_TAG.

void ibrcommon::NetLinkManager::up ( ) throw ()
virtual

Reimplemented from ibrcommon::LinkManager.

Definition at line 347 of file NetLinkManager.cpp.

Friends And Related Function Documentation

friend class LinkManager
friend

Definition at line 41 of file NetLinkManager.h.


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