IBR-DTNSuite
0.12
|
#include <DiscoveryService.h>
Public Member Functions | |
DiscoveryService () | |
DiscoveryService (const dtn::core::Node::Protocol p, const std::string ¶meters) | |
DiscoveryService (const std::string &name, const std::string ¶meters) | |
virtual | ~DiscoveryService () |
dtn::data::Length | getLength () const |
dtn::core::Node::Protocol | getProtocol () const |
const std::string & | getName () const |
const std::string & | getParameters () const |
void | update (const std::string ¶meters) |
Static Public Member Functions | |
static std::string | asTag (const dtn::core::Node::Protocol proto) |
static dtn::core::Node::Protocol | asProtocol (const std::string &tag) |
Protected Attributes | |
dtn::core::Node::Protocol | _service_protocol |
std::string | _service_name |
std::string | _service_parameters |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const DiscoveryService &service) |
std::istream & | operator>> (std::istream &stream, DiscoveryService &service) |
Definition at line 34 of file DiscoveryService.h.
dtn::net::DiscoveryService::DiscoveryService | ( | ) |
Definition at line 33 of file DiscoveryService.cpp.
dtn::net::DiscoveryService::DiscoveryService | ( | const dtn::core::Node::Protocol | p, |
const std::string & | parameters | ||
) |
Definition at line 38 of file DiscoveryService.cpp.
dtn::net::DiscoveryService::DiscoveryService | ( | const std::string & | name, |
const std::string & | parameters | ||
) |
Definition at line 43 of file DiscoveryService.cpp.
|
virtual |
Definition at line 48 of file DiscoveryService.cpp.
|
static |
Definition at line 80 of file DiscoveryService.cpp.
References dtn::core::Node::CONN_BLUETOOTH, dtn::core::Node::CONN_DGRAM_ETHERNET, dtn::core::Node::CONN_DGRAM_LOWPAN, dtn::core::Node::CONN_DGRAM_UDP, dtn::core::Node::CONN_EMAIL, dtn::core::Node::CONN_FILE, dtn::core::Node::CONN_HTTP, dtn::core::Node::CONN_LOWPAN, dtn::core::Node::CONN_P2P_BT, dtn::core::Node::CONN_P2P_WIFI, dtn::core::Node::CONN_TCPIP, dtn::core::Node::CONN_UDPIP, dtn::core::Node::CONN_UNDEFINED, and dtn::core::Node::CONN_UNSUPPORTED.
Referenced by dtn::net::operator>>().
|
static |
convert a protocol identifier to a tag
Definition at line 125 of file DiscoveryService.cpp.
References dtn::core::Node::CONN_BLUETOOTH, dtn::core::Node::CONN_DGRAM_ETHERNET, dtn::core::Node::CONN_DGRAM_LOWPAN, dtn::core::Node::CONN_DGRAM_UDP, dtn::core::Node::CONN_EMAIL, dtn::core::Node::CONN_FILE, dtn::core::Node::CONN_HTTP, dtn::core::Node::CONN_LOWPAN, dtn::core::Node::CONN_P2P_BT, dtn::core::Node::CONN_P2P_WIFI, dtn::core::Node::CONN_TCPIP, dtn::core::Node::CONN_UDPIP, dtn::core::Node::CONN_UNDEFINED, and dtn::core::Node::CONN_UNSUPPORTED.
Referenced by dtn::net::DatagramService::getServiceTag().
dtn::data::Length dtn::net::DiscoveryService::getLength | ( | ) | const |
Definition at line 52 of file DiscoveryService.cpp.
References _service_name, _service_parameters, and dtn::data::BundleString::getLength().
const std::string & dtn::net::DiscoveryService::getName | ( | ) | const |
Definition at line 65 of file DiscoveryService.cpp.
References _service_name.
Referenced by dtn::net::DiscoveryAgent::onBeaconReceived().
const std::string & dtn::net::DiscoveryService::getParameters | ( | ) | const |
Definition at line 70 of file DiscoveryService.cpp.
References _service_parameters.
Referenced by dtn::net::IPNDAgent::componentRun(), and dtn::net::DiscoveryAgent::onBeaconReceived().
dtn::core::Node::Protocol dtn::net::DiscoveryService::getProtocol | ( | ) | const |
Definition at line 60 of file DiscoveryService.cpp.
References _service_protocol.
Referenced by dtn::net::DiscoveryAgent::onBeaconReceived().
void dtn::net::DiscoveryService::update | ( | const std::string & | parameters) |
Update the parameters of this service
Definition at line 75 of file DiscoveryService.cpp.
References _service_parameters.
Referenced by dtn::net::IPNDAgent::componentRun().
|
friend |
Definition at line 175 of file DiscoveryService.cpp.
|
friend |
Definition at line 185 of file DiscoveryService.cpp.
|
protected |
Definition at line 61 of file DiscoveryService.h.
Referenced by getLength(), getName(), dtn::net::operator<<(), and dtn::net::operator>>().
|
protected |
Definition at line 62 of file DiscoveryService.h.
Referenced by getLength(), getParameters(), dtn::net::operator<<(), dtn::net::operator>>(), and update().
|
protected |
Definition at line 60 of file DiscoveryService.h.
Referenced by getProtocol(), and dtn::net::operator>>().