IBR-DTNSuite  0.10
dtn::net::IPNDAgent Class Reference

#include <IPNDAgent.h>

Inheritance diagram for dtn::net::IPNDAgent:
Inheritance graph
Collaboration diagram for dtn::net::IPNDAgent:
Collaboration graph

Public Member Functions

 IPNDAgent (int port)
 
virtual ~IPNDAgent ()
 
void add (const ibrcommon::vaddress &address)
 
void bind (const ibrcommon::vinterface &net)
 
virtual const std::string getName () const
 
void eventNotify (const ibrcommon::LinkEvent &evt)
 
void raiseEvent (const Event *evt) throw ()
 
- Public Member Functions inherited from dtn::net::DiscoveryAgent
 DiscoveryAgent (const dtn::daemon::Configuration::Discovery &config)
 
virtual ~DiscoveryAgent ()=0
 
void received (const dtn::data::EID &source, const std::list< DiscoveryService > &services, const dtn::data::Number &timeout=0)
 
void addService (dtn::net::DiscoveryServiceProvider *provider)
 
- Public Member Functions inherited from dtn::core::EventReceiver
virtual ~EventReceiver ()=0
 
- Public Member Functions inherited from dtn::daemon::IndependentComponent
 IndependentComponent ()
 
virtual ~IndependentComponent ()
 
virtual void initialize () throw ()
 
virtual void startup () throw ()
 
virtual void terminate () throw ()
 
- Public Member Functions inherited from dtn::daemon::Component
virtual ~Component ()=0
 
- Public Member Functions inherited from ibrcommon::LinkManager::EventCallback
virtual ~EventCallback ()
 

Static Public Attributes

static const std::string TAG = "IPNDAgent"
 

Protected Member Functions

void sendAnnoucement (const uint16_t &sn, std::list< dtn::net::DiscoveryServiceProvider * > &provider)
 
virtual void componentRun () throw ()
 
virtual void componentUp () throw ()
 
virtual void componentDown () throw ()
 
void __cancellation () throw ()
 
- Protected Member Functions inherited from dtn::net::DiscoveryAgent
void timeout ()
 
- Protected Member Functions inherited from dtn::daemon::IndependentComponent
void run () throw ()
 
- Protected 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 ()
 
 JoinableThread (size_t size=DEFAULT_STACKSIZE)
 

Additional Inherited Members

- Protected Attributes inherited from dtn::net::DiscoveryAgent
const
dtn::daemon::Configuration::Discovery
_config
 

Detailed Description

Definition at line 45 of file IPNDAgent.h.

Constructor & Destructor Documentation

dtn::net::IPNDAgent::~IPNDAgent ( )
virtual

Definition at line 72 of file IPNDAgent.cpp.

References ibrcommon::vsocket::destroy().

Here is the call graph for this function:

Member Function Documentation

void dtn::net::IPNDAgent::__cancellation ( ) throw ()
protectedvirtual

This method is called after componentDown() and should should guarantee that blocking calls in componentRun() will unblock.

Implements dtn::daemon::IndependentComponent.

Definition at line 535 of file IPNDAgent.cpp.

References ibrcommon::vsocket::down().

Here is the call graph for this function:

void dtn::net::IPNDAgent::add ( const ibrcommon::vaddress address)

Definition at line 78 of file IPNDAgent.cpp.

References IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, ibrcommon::LogLevel::info, and ibrcommon::vaddress::toString().

Here is the call graph for this function:

void dtn::net::IPNDAgent::bind ( const ibrcommon::vinterface net)

Definition at line 83 of file IPNDAgent.cpp.

References IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, ibrcommon::LogLevel::info, and ibrcommon::vinterface::toString().

Here is the call graph for this function:

void dtn::net::IPNDAgent::componentDown ( ) throw ()
protectedvirtual

This method is called if the component should stop. Clean-up code should be inserted here.

Implements dtn::daemon::IndependentComponent.

Definition at line 414 of file IPNDAgent.cpp.

References ibrcommon::vsocket::destroy(), ibrcommon::vsocket::down(), ibrcommon::LinkManager::getInstance(), ibrcommon::JoinableThread::join(), dtn::core::EventDispatcher< E >::remove(), ibrcommon::LinkManager::removeEventListener(), and ibrcommon::JoinableThread::stop().

Here is the call graph for this function:

void dtn::net::IPNDAgent::componentUp ( ) throw ()
protectedvirtual
const std::string dtn::net::IPNDAgent::getName ( ) const
virtual
See Also
Component::getName()

Implements dtn::daemon::Component.

Definition at line 541 of file IPNDAgent.cpp.

void dtn::net::IPNDAgent::raiseEvent ( const Event evt) throw ()
virtual
void dtn::net::IPNDAgent::sendAnnoucement ( const uint16_t &  sn,
std::list< dtn::net::DiscoveryServiceProvider * > &  provider 
)
protectedvirtual

Member Data Documentation

const std::string dtn::net::IPNDAgent::TAG = "IPNDAgent"
static

Definition at line 48 of file IPNDAgent.h.

Referenced by componentUp().


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