IBR-DTN  1.0.0
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 dtn::net::P2PDialupEvent &evt) throw ()
 
void onAdvertiseBeacon (const ibrcommon::vinterface &iface, const DiscoveryBeacon &beacon) throw ()
 
- Public Member Functions inherited from dtn::core::EventReceiver< dtn::net::P2PDialupEvent >
virtual ~EventReceiver ()
 
- 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 dtn::net::DiscoveryBeaconHandler
virtual ~DiscoveryBeaconHandler ()=0
 
virtual void onUpdateBeacon (const ibrcommon::vinterface &iface, DiscoveryBeacon &beacon) throw (NoServiceHereException)
 

Protected Member Functions

virtual void componentRun () throw ()
 
virtual void componentUp () throw ()
 
virtual void componentDown () throw ()
 
void __cancellation () throw ()
 
- Protected Member Functions inherited from dtn::daemon::IndependentComponent
void run () throw ()
 

Detailed Description

Definition at line 45 of file IPNDAgent.h.

Constructor & Destructor Documentation

dtn::net::IPNDAgent::IPNDAgent ( int  port)

Definition at line 54 of file IPNDAgent.cpp.

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

Definition at line 63 of file IPNDAgent.cpp.

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 514 of file IPNDAgent.cpp.

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

Definition at line 68 of file IPNDAgent.cpp.

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

Definition at line 73 of file IPNDAgent.cpp.

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 404 of file IPNDAgent.cpp.

References dtn::core::BundleCore::getDiscoveryAgent(), dtn::core::BundleCore::getInstance(), dtn::core::EventDispatcher< E >::remove(), and dtn::net::DiscoveryAgent::unregisterService().

Here is the call graph for this function:

void dtn::net::IPNDAgent::componentRun ( )
throw (
)
protectedvirtual
void dtn::net::IPNDAgent::componentUp ( )
throw (
)
protectedvirtual

Is called in preparation of the component. Before componentRun() is called.

Implements dtn::daemon::IndependentComponent.

Definition at line 332 of file IPNDAgent.cpp.

References dtn::core::EventDispatcher< E >::add(), dtn::core::BundleCore::getDiscoveryAgent(), dtn::core::BundleCore::getInstance(), and dtn::net::DiscoveryAgent::registerService().

Here is the call graph for this function:

void dtn::net::IPNDAgent::eventNotify ( const ibrcommon::LinkEvent &  evt)

Definition at line 294 of file IPNDAgent.cpp.

const std::string dtn::net::IPNDAgent::getName ( ) const
virtual
See Also
Component::getName()

Implements dtn::daemon::Component.

Definition at line 520 of file IPNDAgent.cpp.

void dtn::net::IPNDAgent::onAdvertiseBeacon ( const ibrcommon::vinterface &  iface,
const DiscoveryBeacon beacon 
)
throw (
)
virtual

This method is called by the DiscoveryAgent every time a beacon is ready for advertisement

Reimplemented from dtn::net::DiscoveryBeaconHandler.

Definition at line 202 of file IPNDAgent.cpp.


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