IBR-DTNSuite  0.12
dtn::net::DiscoveryAgent Class Reference

#include <DiscoveryAgent.h>

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

Public Member Functions

 DiscoveryAgent ()
 
virtual ~DiscoveryAgent ()
 
void raiseEvent (const dtn::core::Event *evt) throw ()
 
void onBeaconReceived (const DiscoveryBeacon &beacon)
 
void registerService (const ibrcommon::vinterface &iface, dtn::net::DiscoveryBeaconHandler *handler)
 
void registerService (dtn::net::DiscoveryBeaconHandler *handler)
 
void unregisterService (const ibrcommon::vinterface &iface, const dtn::net::DiscoveryBeaconHandler *handler)
 
void unregisterService (const dtn::net::DiscoveryBeaconHandler *handler)
 
DiscoveryBeacon obtainBeacon () const
 
- Public Member Functions inherited from dtn::core::EventReceiver
virtual ~EventReceiver ()=0
 
- Public Member Functions inherited from dtn::daemon::IntegratedComponent
 IntegratedComponent ()
 
virtual ~IntegratedComponent ()
 
virtual void initialize () throw ()
 
virtual void startup () throw ()
 
virtual void terminate () throw ()
 
- Public Member Functions inherited from dtn::daemon::Component
virtual ~Component ()=0
 

Protected Member Functions

virtual void componentUp () throw ()
 
virtual void componentDown () throw ()
 
virtual const std::string getName () const
 

Detailed Description

Definition at line 42 of file DiscoveryAgent.h.

Constructor & Destructor Documentation

dtn::net::DiscoveryAgent::DiscoveryAgent ( )

Definition at line 41 of file DiscoveryAgent.cpp.

dtn::net::DiscoveryAgent::~DiscoveryAgent ( )
virtual

Definition at line 47 of file DiscoveryAgent.cpp.

Member Function Documentation

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

Implements dtn::daemon::IntegratedComponent.

Definition at line 97 of file DiscoveryAgent.cpp.

References dtn::core::EventDispatcher< E >::remove().

Here is the call graph for this function:

void dtn::net::DiscoveryAgent::componentUp ( )
throw (
)
protectedvirtual

Implements dtn::daemon::IntegratedComponent.

Definition at line 88 of file DiscoveryAgent.cpp.

References dtn::core::EventDispatcher< E >::add().

Here is the call graph for this function:

const std::string dtn::net::DiscoveryAgent::getName ( ) const
protectedvirtual

Return an identifier for this component

Returns

Implements dtn::daemon::Component.

Definition at line 51 of file DiscoveryAgent.cpp.

void dtn::net::DiscoveryAgent::raiseEvent ( const dtn::core::Event evt)
throw (
)
virtual
void dtn::net::DiscoveryAgent::registerService ( dtn::net::DiscoveryBeaconHandler handler)

Definition at line 113 of file DiscoveryAgent.cpp.

void dtn::net::DiscoveryAgent::unregisterService ( const dtn::net::DiscoveryBeaconHandler handler)

Definition at line 120 of file DiscoveryAgent.cpp.


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