IBR-DTNSuite
0.12
|
#include <CustodySignalBlock.h>
Public Types | |
enum | REASON_CODE { NO_ADDITIONAL_INFORMATION = 0x00, RESERVED_01 = 0x01, RESERVED_02 = 0x02, REDUNDANT_RECEPTION = 0x03, DEPLETED_STORAGE = 0x04, DESTINATION_ENDPOINT_ID_UNINTELLIGIBLE = 0x05, NO_KNOWN_ROUTE_TO_DESTINATION_FROM_HERE = 0x06, NO_TIMELY_CONTACT_WITH_NEXT_NODE_ON_ROUTE = 0x07, BLOCK_UNINTELLIGIBLE = 0x08 } |
Public Member Functions | |
CustodySignalBlock () | |
virtual | ~CustodySignalBlock () |
void | setMatch (const dtn::data::MetaBundle &other) |
void | setMatch (const dtn::data::Bundle &other) |
bool | match (const dtn::data::Bundle &other) const |
virtual void | read (const dtn::data::PayloadBlock &p) throw (WrongRecordException) |
virtual void | write (dtn::data::PayloadBlock &p) const |
Public Member Functions inherited from dtn::data::AdministrativeBlock | |
AdministrativeBlock () | |
virtual | ~AdministrativeBlock ()=0 |
Public Attributes | |
bool | custody_accepted |
REASON_CODE | reason |
DTNTime | timeofsignal |
dtn::data::BundleID | bundleid |
Definition at line 38 of file CustodySignalBlock.h.
Definition at line 41 of file CustodySignalBlock.h.
dtn::data::CustodySignalBlock::CustodySignalBlock | ( | ) |
Definition at line 32 of file CustodySignalBlock.cpp.
|
virtual |
Definition at line 37 of file CustodySignalBlock.cpp.
bool dtn::data::CustodySignalBlock::match | ( | const dtn::data::Bundle & | other) | const |
Definition at line 129 of file CustodySignalBlock.cpp.
References bundleid.
|
virtual |
Implements dtn::data::AdministrativeBlock.
Definition at line 41 of file CustodySignalBlock.cpp.
References ibrcommon::BLOB::Reference::iostream().
Referenced by dtn::core::BundleCore::raiseEvent().
void dtn::data::CustodySignalBlock::setMatch | ( | const dtn::data::MetaBundle & | other) |
Definition at line 117 of file CustodySignalBlock.cpp.
References bundleid.
Referenced by dtn::storage::BundleStorage::acceptCustody(), and dtn::storage::BundleStorage::rejectCustody().
void dtn::data::CustodySignalBlock::setMatch | ( | const dtn::data::Bundle & | other) |
Definition at line 123 of file CustodySignalBlock.cpp.
References bundleid.
|
virtual |
Implements dtn::data::AdministrativeBlock.
Definition at line 81 of file CustodySignalBlock.cpp.
References bundleid, ibrcommon::BLOB::iostream::clear(), custody_accepted, dtn::data::BundleID::fragmentoffset, dtn::data::PayloadBlock::getBLOB(), dtn::data::BundleID::getPayloadLength(), dtn::data::EID::getString(), ibrcommon::BLOB::Reference::iostream(), dtn::data::BundleID::isFragment(), reason, dtn::data::BundleID::sequencenumber, dtn::data::BundleID::source, timeofsignal, and dtn::data::BundleID::timestamp.
Referenced by dtn::storage::BundleStorage::acceptCustody(), and dtn::storage::BundleStorage::rejectCustody().
dtn::data::BundleID dtn::data::CustodySignalBlock::bundleid |
Definition at line 67 of file CustodySignalBlock.h.
Referenced by match(), setMatch(), and write().
bool dtn::data::CustodySignalBlock::custody_accepted |
Definition at line 64 of file CustodySignalBlock.h.
Referenced by dtn::storage::BundleStorage::acceptCustody(), and write().
REASON_CODE dtn::data::CustodySignalBlock::reason |
Definition at line 65 of file CustodySignalBlock.h.
Referenced by dtn::storage::BundleStorage::rejectCustody(), and write().
DTNTime dtn::data::CustodySignalBlock::timeofsignal |
Definition at line 66 of file CustodySignalBlock.h.
Referenced by write().