IBR-DTNSuite
0.10
|
#include <Node.h>
Public Member Functions | |
URI (const Type t, const Protocol proto, const std::string &uri, const dtn::data::Number &timeout=0, const int priority=0) | |
~URI () | |
void | decode (std::string &address, unsigned int &port) const |
bool | operator< (const URI &other) const |
bool | operator== (const URI &other) const |
bool | operator== (const Node::Protocol &p) const |
bool | operator== (const Node::Type &t) const |
Public Attributes | |
const Type | type |
const Protocol | protocol |
const std::string | value |
const dtn::data::Timestamp | expire |
const int | priority |
Friends | |
std::ostream & | operator<< (std::ostream &, const Node::URI &) |
dtn::core::Node::URI::URI | ( | const Type | t, |
const Protocol | proto, | ||
const std::string & | uri, | ||
const dtn::data::Number & | timeout = 0 , |
||
const int | priority = 0 |
||
) |
void dtn::core::Node::URI::decode | ( | std::string & | address, |
unsigned int & | port | ||
) | const |
Definition at line 47 of file Node.cpp.
References dtn::utils::Utils::tokenize().
Referenced by dtn::net::TCPConnection::connect(), dtn::net::UDPConvergenceLayer::queue(), and dtn::net::LOWPANConvergenceLayer::queue().
bool dtn::core::Node::URI::operator< | ( | const URI & | other | ) | const |
bool dtn::core::Node::URI::operator== | ( | const URI & | other | ) | const |
bool dtn::core::Node::URI::operator== | ( | const Node::Protocol & | p | ) | const |
bool dtn::core::Node::URI::operator== | ( | const Node::Type & | t | ) | const |
|
friend |
const dtn::data::Timestamp dtn::core::Node::URI::expire |
Definition at line 89 of file Node.h.
Referenced by dtn::core::Node::expire(), and dtn::core::operator<<().
const int dtn::core::Node::URI::priority |
Definition at line 90 of file Node.h.
Referenced by dtn::core::compare_uri_priority(), and dtn::core::operator<<().
const Protocol dtn::core::Node::URI::protocol |
Definition at line 87 of file Node.h.
Referenced by operator<(), dtn::core::operator<<(), and operator==().
const Type dtn::core::Node::URI::type |
Definition at line 86 of file Node.h.
Referenced by dtn::daemon::NativeDaemon::getInfo(), dtn::core::Node::hasDialup(), dtn::core::Node::isAvailable(), operator<(), dtn::core::operator<<(), and operator==().
const std::string dtn::core::Node::URI::value |
Definition at line 88 of file Node.h.
Referenced by dtn::api::ApiP2PExtensionHandler::connect(), dtn::net::NativeP2pManager::connect(), dtn::net::WifiP2PManager::connect(), dtn::net::TCPConnection::connect(), dtn::api::ApiP2PExtensionHandler::disconnect(), dtn::net::NativeP2pManager::disconnect(), dtn::net::WifiP2PManager::disconnect(), operator<(), dtn::core::operator<<(), operator==(), and dtn::net::DatagramConvergenceLayer::queue().