IBR-DTNSuite  0.12
ibrcommon::PosixLinkManager Class Reference

#include <PosixLinkManager.h>

Inheritance diagram for ibrcommon::PosixLinkManager:
Inheritance graph
Collaboration diagram for ibrcommon::PosixLinkManager:
Collaboration graph

Public Member Functions

 PosixLinkManager ()
 
virtual ~PosixLinkManager ()
 
void up () throw ()
 
void down () throw ()
 
const vinterface getInterface (int index) const
 
const std::list< vaddressgetAddressList (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< vinterfacegetMonitoredInterfaces ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ibrcommon::LinkManager
static LinkManagergetInstance ()
 
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
 

Detailed Description

Definition at line 19 of file PosixLinkManager.h.

Constructor & Destructor Documentation

ibrcommon::PosixLinkManager::PosixLinkManager ( )

Definition at line 29 of file PosixLinkManager.cpp.

ibrcommon::PosixLinkManager::~PosixLinkManager ( )
virtual

Definition at line 33 of file PosixLinkManager.cpp.

References down().

Here is the call graph for this function:

Member Function Documentation

void ibrcommon::PosixLinkManager::addEventListener ( const vinterface iface,
LinkManager::EventCallback cb 
)
throw (
)
virtual

Reimplemented from ibrcommon::LinkManager.

Definition at line 129 of file PosixLinkManager.cpp.

References ibrcommon::LinkManager::addEventListener().

Here is the call graph for this function:

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

Reimplemented from ibrcommon::LinkManager.

Definition at line 43 of file PosixLinkManager.cpp.

References ibrcommon::JoinableThread::join(), and ibrcommon::JoinableThread::stop().

Referenced by ~PosixLinkManager().

Here is the call graph for this function:

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

Implements ibrcommon::LinkManager.

Definition at line 49 of file PosixLinkManager.cpp.

void ibrcommon::PosixLinkManager::removeEventListener ( const vinterface iface,
LinkManager::EventCallback cb 
)
throw (
)
virtual

Reimplemented from ibrcommon::LinkManager.

Definition at line 138 of file PosixLinkManager.cpp.

References ibrcommon::LinkManager::removeEventListener().

Here is the call graph for this function:

void ibrcommon::PosixLinkManager::removeEventListener ( LinkManager::EventCallback cb)
throw (
)
virtual

Reimplemented from ibrcommon::LinkManager.

Definition at line 147 of file PosixLinkManager.cpp.

References ibrcommon::LinkManager::removeEventListener().

Here is the call graph for this function:

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

Reimplemented from ibrcommon::LinkManager.

Definition at line 38 of file PosixLinkManager.cpp.

References ibrcommon::JoinableThread::start().

Here is the call graph for this function:


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