|
IBR-DTNSuite 0.6
|
#include <EID.h>

Public Member Functions | |
| EID () | |
| EID (std::string scheme, std::string ssp) | |
| EID (std::string value) | |
| EID (size_t node, size_t application) | |
| virtual | ~EID () |
| EID & | operator= (const EID &other) |
| bool | operator== (EID const &other) const |
| bool | operator== (string const &other) const |
| bool | operator!= (EID const &other) const |
| EID | operator+ (string suffix) const |
| bool | sameHost (string const &other) const |
| bool | sameHost (EID const &other) const |
| bool | operator< (EID const &other) const |
| bool | operator> (const EID &other) const |
| string | getString () const |
| string | getApplication () const throw (ibrcommon::Exception) |
| string | getHost () const throw (ibrcommon::Exception) |
| string | getScheme () const |
| EID | getNode () const throw (ibrcommon::Exception) |
| bool | hasApplication () const |
| bool | isCompressable () const |
| std::pair< size_t, size_t > | getCompressed () const |
Static Public Attributes | |
| static const std::string | DEFAULT_SCHEME = "dtn" |
| static const std::string | CBHE_SCHEME = "ipn" |
| dtn::data::EID::EID | ( | ) |
Definition at line 20 of file EID.cpp.
Referenced by operator+(), operator==(), and sameHost().
| dtn::data::EID::EID | ( | std::string | scheme, |
| std::string | ssp | ||
| ) |
Definition at line 25 of file EID.cpp.
References dtn::utils::Utils::trim().

| dtn::data::EID::EID | ( | std::string | value | ) |
Definition at line 34 of file EID.cpp.
References DEFAULT_SCHEME, and dtn::utils::Utils::trim().

| dtn::data::EID::EID | ( | size_t | node, |
| size_t | application | ||
| ) |
Constructor for CBHE EIDs.
| node | Node number. |
| application | Application number. |
Definition at line 60 of file EID.cpp.
References DEFAULT_SCHEME.
| std::string dtn::data::EID::getApplication | ( | ) | const throw (ibrcommon::Exception) |
Definition at line 131 of file EID.cpp.
References CBHE_SCHEME.
Referenced by dtn::data::Dictionary::add(), dtn::api::ClientHandler::eventConnectionUp(), getCompressed(), and dtn::data::Dictionary::getRef().
| std::pair< size_t, size_t > dtn::data::EID::getCompressed | ( | ) | const |
Get the compressed EID as two numeric values. Both values are set to zero if the EID is not compressable.
Definition at line 238 of file EID.cpp.
References getApplication(), getHost(), hasApplication(), and isCompressable().
Referenced by dtn::data::DefaultSerializer::getLength(), and dtn::data::DefaultSerializer::operator<<().

| std::string dtn::data::EID::getHost | ( | ) | const throw (ibrcommon::Exception) |
Definition at line 168 of file EID.cpp.
References CBHE_SCHEME.
Referenced by dtn::data::Dictionary::add(), dtn::api::ClientHandler::eventConnectionUp(), getCompressed(), getNode(), and dtn::data::Dictionary::getRef().
| EID dtn::data::EID::getNode | ( | ) | const throw (ibrcommon::Exception) |
Definition at line 202 of file EID.cpp.
References getHost().
Referenced by dtn::security::SecurityKeyManager::get(), dtn::security::SecurityKeyManager::hasKey(), dtn::security::SecurityBlock::isSecurityDestination(), dtn::security::SecurityBlock::isSecuritySource(), dtn::net::TCPConnection::match(), dtn::routing::NeighborRoutingExtension::notify(), dtn::routing::StaticRoutingExtension::run(), dtn::routing::NeighborRoutingExtension::run(), dtn::routing::FloodRoutingExtension::run(), dtn::routing::EpidemicRoutingExtension::run(), sameHost(), and dtn::security::SecurityKeyManager::store().

| std::string dtn::data::EID::getScheme | ( | ) | const |
Definition at line 197 of file EID.cpp.
Referenced by dtn::data::Dictionary::add(), and dtn::data::Dictionary::getRef().
| std::string dtn::data::EID::getString | ( | ) | const |
Definition at line 126 of file EID.cpp.
Referenced by dtn::net::HTTPConvergenceLayer::componentRun(), dtn::api::ClientHandler::eventConnectionUp(), dtn::data::StatusReportBlock::getLength(), dtn::data::CustodySignalBlock::getLength(), dtn::security::SecurityBlock::isSecurityDestination(), dtn::security::SecurityBlock::isSecuritySource(), main(), dtn::routing::StaticRoutingExtension::StaticRoute::match(), operator+(), operator<(), dtn::streams::operator<<(), dtn::security::MutualSerializer::operator<<(), dtn::data::operator<<(), dtn::net::operator<<(), dtn::security::SecurityManager::prefetchKey(), dtn::net::HTTPConvergenceLayer::queue(), dtn::data::StatusReportBlock::serialize(), dtn::data::CustodySignalBlock::serialize(), dtn::core::SQLiteBundleStorage::store(), dtn::data::PrimaryBlock::toString(), dtn::data::BundleID::toString(), dtn::net::TransferCompletedEvent::toString(), dtn::net::TransferAbortedEvent::toString(), dtn::net::DiscoveryAnnouncement::toString(), dtn::net::ConnectionEvent::toString(), and dtn::core::Node::toString().
| bool dtn::data::EID::hasApplication | ( | ) | const |
| bool dtn::data::EID::isCompressable | ( | ) | const |
check if a EID is compressable.
Definition at line 233 of file EID.cpp.
References CBHE_SCHEME, and DEFAULT_SCHEME.
Referenced by getCompressed(), and dtn::data::DefaultSerializer::isCompressable().
| EID dtn::data::EID::operator+ | ( | string | suffix | ) | const |
Definition at line 101 of file EID.cpp.
References EID(), and getString().

| bool dtn::data::EID::operator< | ( | EID const & | other | ) | const |
Definition at line 116 of file EID.cpp.
References getString().

| bool dtn::data::EID::operator== | ( | string const & | other | ) | const |
| bool dtn::data::EID::sameHost | ( | string const & | other | ) | const |
Definition at line 106 of file EID.cpp.
References EID(), and getNode().
Referenced by dtn::core::SQLiteBundleStorage::store().

| bool dtn::data::EID::sameHost | ( | EID const & | other | ) | const |
const std::string dtn::data::EID::CBHE_SCHEME = "ipn" [static] |
Definition at line 24 of file EID.h.
Referenced by dtn::api::ClientHandler::eventConnectionUp(), getApplication(), getHost(), hasApplication(), and isCompressable().
const std::string dtn::data::EID::DEFAULT_SCHEME = "dtn" [static] |
Definition at line 23 of file EID.h.
Referenced by EID(), and isCompressable().