IBR-DTNSuite  0.8
dtn::net::DiscoveryService Class Reference

#include <DiscoveryService.h>

Collaboration diagram for dtn::net::DiscoveryService:

List of all members.

Public Member Functions

 DiscoveryService ()
 DiscoveryService (DiscoveryServiceProvider *provider)
 DiscoveryService (std::string name, std::string parameters)
virtual ~DiscoveryService ()
size_t getLength () const
std::string getName () const
std::string getParameters () const
void update (const ibrcommon::vinterface &net)

Protected Attributes

std::string _service_name
std::string _service_parameters
DiscoveryServiceProvider_provider

Friends

std::ostream & operator<< (std::ostream &stream, const DiscoveryService &service)
std::istream & operator>> (std::istream &stream, DiscoveryService &service)

Detailed Description

Definition at line 20 of file DiscoveryService.h.


Constructor & Destructor Documentation

dtn::net::DiscoveryService::DiscoveryService ( std::string  name,
std::string  parameters 
)

Definition at line 29 of file DiscoveryService.cpp.

Definition at line 34 of file DiscoveryService.cpp.


Member Function Documentation

Definition at line 38 of file DiscoveryService.cpp.

References _service_name, _service_parameters, and dtn::data::BundleString::getLength().

Referenced by dtn::net::operator>>().

Here is the call graph for this function:

updates the values of the service block

Definition at line 56 of file DiscoveryService.cpp.

References _provider, _service_name, _service_parameters, and dtn::net::DiscoveryServiceProvider::update().

Referenced by dtn::net::IPNDAgent::sendAnnoucement(), and dtn::net::LOWPANConvergenceLayer::sendAnnoucement().

Here is the call graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const DiscoveryService service 
) [friend]

Definition at line 61 of file DiscoveryService.cpp.

std::istream& operator>> ( std::istream &  stream,
DiscoveryService service 
) [friend]

Definition at line 71 of file DiscoveryService.cpp.


Member Data Documentation

Definition at line 41 of file DiscoveryService.h.

Referenced by update().


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