IBR-DTNSuite
0.12
|
#include <BundleID.h>
Public Member Functions | |
BundleID () | |
virtual | ~BundleID () |
bool | operator!= (const BundleID &other) const |
bool | operator== (const BundleID &other) const |
bool | operator< (const BundleID &other) const |
bool | operator> (const BundleID &other) const |
BundleID (const BundleID &id) | |
BundleID & | operator= (const BundleID &id) |
std::string | toString () const |
virtual dtn::data::Length | getPayloadLength () const |
virtual void | setPayloadLength (const dtn::data::Length &value) |
virtual bool | isFragment () const |
virtual void | setFragment (bool val) |
void | addTo (ibrcommon::BloomFilter &bf) const |
bool | isIn (const ibrcommon::BloomFilter &bf) const |
size_t | raw (unsigned char *data, size_t len) const |
Public Attributes | |
dtn::data::EID | source |
dtn::data::Timestamp | timestamp |
dtn::data::Number | sequencenumber |
dtn::data::Number | fragmentoffset |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const BundleID &obj) |
std::istream & | operator>> (std::istream &stream, BundleID &obj) |
Definition at line 33 of file BundleID.h.
dtn::data::BundleID::BundleID | ( | ) |
Definition at line 37 of file BundleID.cpp.
|
virtual |
Definition at line 48 of file BundleID.cpp.
dtn::data::BundleID::BundleID | ( | const BundleID & | id) |
Definition at line 42 of file BundleID.cpp.
void dtn::data::BundleID::addTo | ( | ibrcommon::BloomFilter & | bf) | const |
Add this BundleID to the BloomFilter
Definition at line 132 of file BundleID.cpp.
References ibrcommon::BloomFilter::insert(), and raw().
|
virtual |
Reimplemented in dtn::data::Bundle.
Definition at line 112 of file BundleID.cpp.
Referenced by dtn::core::FragmentManager::componentRun(), operator<(), dtn::data::operator<<(), operator=(), operator==(), dtn::api::EventConnection::raiseEvent(), raw(), toString(), dtn::data::CustodySignalBlock::write(), and dtn::data::StatusReportBlock::write().
|
virtual |
Reimplemented in dtn::data::PrimaryBlock, and dtn::data::MetaBundle.
Definition at line 122 of file BundleID.cpp.
Referenced by operator<(), dtn::data::operator<<(), operator=(), operator==(), dtn::api::EventConnection::raiseEvent(), raw(), toString(), dtn::data::CustodySignalBlock::write(), and dtn::data::StatusReportBlock::write().
bool dtn::data::BundleID::isIn | ( | const ibrcommon::BloomFilter & | bf) | const |
Check if this BundleID is part of the BloomFilter
Definition at line 139 of file BundleID.cpp.
References ibrcommon::BloomFilter::contains(), and raw().
Referenced by dtn::storage::MetaStorage::find(), and dtn::routing::NodeHandshakeExtension::processHandshake().
bool dtn::data::BundleID::operator!= | ( | const BundleID & | other) | const |
Definition at line 91 of file BundleID.cpp.
bool dtn::data::BundleID::operator< | ( | const BundleID & | other) | const |
Definition at line 63 of file BundleID.cpp.
References fragmentoffset, getPayloadLength(), isFragment(), sequencenumber, source, and timestamp.
Definition at line 52 of file BundleID.cpp.
References fragmentoffset, getPayloadLength(), isFragment(), sequencenumber, setFragment(), setPayloadLength(), source, and timestamp.
bool dtn::data::BundleID::operator== | ( | const BundleID & | other) | const |
Definition at line 96 of file BundleID.cpp.
References fragmentoffset, getPayloadLength(), isFragment(), sequencenumber, source, and timestamp.
bool dtn::data::BundleID::operator> | ( | const BundleID & | other) | const |
Definition at line 86 of file BundleID.cpp.
size_t dtn::data::BundleID::raw | ( | unsigned char * | data, |
size_t | len | ||
) | const |
Generate a RAW data array of the BundleID
Definition at line 146 of file BundleID.cpp.
References fragmentoffset, dtn::data::SDNV< E >::get(), getPayloadLength(), dtn::data::EID::getString(), GUINT64_TO_BE, isFragment(), sequencenumber, source, and timestamp.
Referenced by addTo(), and isIn().
|
virtual |
Reimplemented in dtn::data::PrimaryBlock, and dtn::data::MetaBundle.
Definition at line 127 of file BundleID.cpp.
Referenced by dtn::core::FragmentManager::componentRun(), operator=(), and dtn::data::operator>>().
|
virtual |
Definition at line 117 of file BundleID.cpp.
Referenced by operator=(), and dtn::data::operator>>().
std::string dtn::data::BundleID::toString | ( | ) | const |
Definition at line 190 of file BundleID.cpp.
References fragmentoffset, getPayloadLength(), dtn::data::EID::getString(), isFragment(), sequencenumber, source, timestamp, and dtn::data::SDNV< E >::toString().
Referenced by dtn::daemon::DevNull::callbackBundleReceived(), dtn::core::FragmentManager::componentRun(), dtn::core::BundleGeneratedEvent::getMessage(), dtn::net::TransferCompletedEvent::getMessage(), dtn::routing::RequeueBundleEvent::getMessage(), dtn::core::BundleExpiredEvent::getMessage(), dtn::core::BundlePurgeEvent::getMessage(), dtn::net::TransferAbortedEvent::getMessage(), dtn::core::BundleEvent::getMessage(), main(), dtn::data::operator<<(), dtn::api::PlainDeserializer::operator>>(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::routing::ProphetRoutingExtension::processHandshake(), dtn::net::DatagramConnection::queue(), dtn::core::BundleCore::raiseEvent(), dtn::core::FragmentManager::split(), dtn::storage::MemoryBundleStorage::store(), dtn::storage::SQLiteBundleStorage::store(), dtn::routing::RoutingExtension::transferTo(), and dtn::api::Registration::underflow().
|
friend |
Definition at line 206 of file BundleID.cpp.
|
friend |
Definition at line 225 of file BundleID.cpp.
dtn::data::Number dtn::data::BundleID::fragmentoffset |
Definition at line 57 of file BundleID.h.
Referenced by dtn::daemon::Debugger::callbackBundleReceived(), dtn::core::FragmentManager::componentRun(), dtn::security::PayloadConfidentialBlock::encrypt(), dtn::data::DefaultSerializer::getLength(), operator<(), dtn::api::PlainSerializer::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::data::operator<<(), operator=(), operator==(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::data::operator>>(), dtn::api::EventConnection::raiseEvent(), raw(), dtn::security::PayloadIntegrityBlock::sign(), dtn::core::FragmentManager::split(), toString(), dtn::data::CustodySignalBlock::write(), and dtn::data::StatusReportBlock::write().
dtn::data::Number dtn::data::BundleID::sequencenumber |
Definition at line 55 of file BundleID.h.
Referenced by dtn::daemon::Debugger::callbackBundleReceived(), dtn::data::DefaultSerializer::getLength(), operator<(), dtn::api::PlainSerializer::operator<<(), dtn::security::MutableSerializer::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::data::operator<<(), operator=(), operator==(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::data::operator>>(), dtn::api::EventConnection::raiseEvent(), raw(), dtn::data::PrimaryBlock::relabel(), toString(), dtn::data::CustodySignalBlock::write(), and dtn::data::StatusReportBlock::write().
dtn::data::EID dtn::data::BundleID::source |
Definition at line 53 of file BundleID.h.
Referenced by dtn::storage::BundleStorage::acceptCustody(), dtn::data::Dictionary::add(), dtn::data::Bundle::allEIDsInCBHE(), dtn::security::BundleAuthenticationBlock::auth(), dtn::daemon::CapsuleWorker::callbackBundleReceived(), dtn::daemon::EchoWorker::callbackBundleReceived(), dtn::daemon::Debugger::callbackBundleReceived(), dtn::daemon::DTNTPWorker::callbackBundleReceived(), dtn::security::PayloadConfidentialBlock::encrypt(), dtn::api::OrderedStreamHandler::get(), dtn::security::MutableSerializer::getLength(), dtn::data::DefaultSerializer::getLength(), dtn::security::SecurityBlock::getSecuritySource(), dtn::data::DefaultSerializer::isCompressable(), main(), operator<(), dtn::api::PlainSerializer::operator<<(), dtn::security::MutableSerializer::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::data::operator<<(), operator=(), operator==(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::data::operator>>(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::api::Registration::processIncomingBundle(), dtn::api::OrderedStreamHandler::put(), dtn::api::EventConnection::raiseEvent(), dtn::core::BundleCore::raiseEvent(), raw(), BundleStream::received(), dtn::storage::BundleStorage::rejectCustody(), dtn::security::PayloadIntegrityBlock::sign(), toString(), dtn::api::Registration::underflow(), dtn::data::CustodySignalBlock::write(), and dtn::data::StatusReportBlock::write().
dtn::data::Timestamp dtn::data::BundleID::timestamp |
Definition at line 54 of file BundleID.h.
Referenced by dtn::data::Bundle::Bundle(), dtn::daemon::Debugger::callbackBundleReceived(), dtn::utils::Utils::encapsule(), dtn::utils::Clock::getExpireTime(), dtn::data::DefaultSerializer::getLength(), dtn::utils::Clock::isExpired(), operator<(), dtn::api::PlainSerializer::operator<<(), dtn::security::MutableSerializer::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::data::operator<<(), operator=(), operator==(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::data::operator>>(), dtn::api::Registration::processIncomingBundle(), dtn::api::EventConnection::raiseEvent(), raw(), dtn::data::PrimaryBlock::relabel(), toString(), dtn::data::CustodySignalBlock::write(), and dtn::data::StatusReportBlock::write().