IBR-DTNSuite  0.8
ibrcommon::LinkManager Class Reference

#include <LinkManager.h>

Inheritance diagram for ibrcommon::LinkManager:
Collaboration diagram for ibrcommon::LinkManager:

List of all members.

Classes

class  EventCallback
class  ExternalLinkManagerEvent

Public Member Functions

virtual ~LinkManager ()
virtual const std::string getInterface (int index) const =0
virtual const std::list< vaddressgetAddressList (const vinterface &iface, const vaddress::Family f)=0
virtual void registerInterfaceEvent (const vinterface &, LinkManager::EventCallback *)
virtual void unregisterInterfaceEvent (const vinterface &, LinkManager::EventCallback *)
virtual void unregisterAllEvents (LinkManager::EventCallback *)
void addressAdded (const ibrcommon::vinterface &iface, const ibrcommon::vaddress &addr)
void addressRemoved (const ibrcommon::vinterface &iface, const ibrcommon::vaddress &addr)

Static Public Member Functions

static LinkManagergetInstance ()
static void initialize ()

Protected Member Functions

void raiseEvent (const LinkManagerEvent &lme)

Protected Attributes

ibrcommon::Mutex _listener_mutex
std::map
< ibrcommon::vinterface,
std::set
< LinkManager::EventCallback * > > 
_listener

Detailed Description

Definition at line 39 of file LinkManager.h.


Constructor & Destructor Documentation

virtual ibrcommon::LinkManager::~LinkManager ( ) [inline, virtual]

Definition at line 67 of file LinkManager.h.


Member Function Documentation

Definition at line 159 of file LinkManager.cpp.

References ibrcommon::LinkManagerEvent::EVENT_ADDRESS_ADDED, and raiseEvent().

Here is the call graph for this function:

Definition at line 153 of file LinkManager.cpp.

References ibrcommon::LinkManagerEvent::EVENT_ADDRESS_REMOVED, and raiseEvent().

Here is the call graph for this function:

Definition at line 52 of file LinkManager.cpp.

References getInstance().

Referenced by __daemon_run().

Here is the call graph for this function:

void ibrcommon::LinkManager::raiseEvent ( const LinkManagerEvent lme) [protected]

Definition at line 109 of file LinkManager.cpp.

References _listener, _listener_mutex, and ibrcommon::LinkManagerEvent::getInterface().

Referenced by addressAdded(), addressRemoved(), and ibrcommon::NetLinkManager::run().

Here is the call graph for this function:

Definition at line 67 of file LinkManager.cpp.

References _listener, and _listener_mutex.

Referenced by ibrcommon::vsocket::bind().

Definition at line 76 of file LinkManager.cpp.

References _listener, and _listener_mutex.

Referenced by ibrcommon::vsocket::unbind().


Member Data Documentation


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