IBR-DTNSuite
0.8
|
#include <DiscoveryService.h>
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) |
Definition at line 20 of file DiscoveryService.h.
Definition at line 19 of file DiscoveryService.cpp.
Definition at line 24 of file DiscoveryService.cpp.
dtn::net::DiscoveryService::DiscoveryService | ( | std::string | name, |
std::string | parameters | ||
) |
Definition at line 29 of file DiscoveryService.cpp.
dtn::net::DiscoveryService::~DiscoveryService | ( | ) | [virtual] |
Definition at line 34 of file DiscoveryService.cpp.
size_t dtn::net::DiscoveryService::getLength | ( | ) | const |
Definition at line 38 of file DiscoveryService.cpp.
References _service_name, _service_parameters, and dtn::data::BundleString::getLength().
Referenced by dtn::net::operator>>().
std::string dtn::net::DiscoveryService::getName | ( | ) | const |
Definition at line 46 of file DiscoveryService.cpp.
References _service_name.
Referenced by dtn::net::DatagramConvergenceLayer::componentRun(), and dtn::net::DiscoveryAgent::received().
std::string dtn::net::DiscoveryService::getParameters | ( | ) | const |
Definition at line 51 of file DiscoveryService.cpp.
References _service_parameters.
Referenced by dtn::net::DatagramConvergenceLayer::componentRun(), and dtn::net::DiscoveryAgent::received().
void dtn::net::DiscoveryService::update | ( | const ibrcommon::vinterface & | net | ) |
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().
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.
Definition at line 41 of file DiscoveryService.h.
Referenced by update().
std::string dtn::net::DiscoveryService::_service_name [protected] |
Definition at line 39 of file DiscoveryService.h.
Referenced by getLength(), getName(), dtn::net::operator<<(), dtn::net::operator>>(), and update().
std::string dtn::net::DiscoveryService::_service_parameters [protected] |
Definition at line 40 of file DiscoveryService.h.
Referenced by getLength(), getParameters(), dtn::net::operator<<(), dtn::net::operator>>(), and update().