IBR-DTNSuite 0.6

dtn::net::DiscoveryAgent Class Reference

#include <DiscoveryAgent.h>

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

List of all members.

Public Member Functions

 DiscoveryAgent (const dtn::daemon::Configuration::Discovery &config)
virtual ~DiscoveryAgent ()=0
void received (const dtn::net::DiscoveryAnnouncement &announcement)
void addService (string name, string parameters)
void addService (dtn::net::DiscoveryServiceProvider *provider)

Protected Member Functions

virtual void sendAnnoucement (const u_int16_t &sn, std::list< dtn::net::DiscoveryService > &services)=0
void timeout ()

Protected Attributes

const
dtn::daemon::Configuration::Discovery
_config

Detailed Description

Definition at line 23 of file DiscoveryAgent.h.


Constructor & Destructor Documentation

dtn::net::DiscoveryAgent::DiscoveryAgent ( const dtn::daemon::Configuration::Discovery config)

Definition at line 23 of file DiscoveryAgent.cpp.

dtn::net::DiscoveryAgent::~DiscoveryAgent ( ) [pure virtual]

Definition at line 28 of file DiscoveryAgent.cpp.


Member Function Documentation

void dtn::net::DiscoveryAgent::addService ( string  name,
string  parameters 
)

Referenced by createConvergenceLayers().

void dtn::net::DiscoveryAgent::addService ( dtn::net::DiscoveryServiceProvider provider)

Definition at line 38 of file DiscoveryAgent.cpp.

virtual void dtn::net::DiscoveryAgent::sendAnnoucement ( const u_int16_t &  sn,
std::list< dtn::net::DiscoveryService > &  services 
) [protected, pure virtual]

Referenced by timeout().

void dtn::net::DiscoveryAgent::timeout ( ) [protected]

Definition at line 81 of file DiscoveryAgent.cpp.

References _config, dtn::daemon::Configuration::Discovery::announce(), IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, and sendAnnoucement().

Referenced by dtn::net::IPNDAgent::componentRun().

Here is the call graph for this function:


Member Data Documentation


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