Block processor implementation for any unknown bundle blocks. More...
#include <UnknownBlockProcessor.h>
Public Member Functions | |
UnknownBlockProcessor () | |
Constructor. | |
int | prepare (const Bundle *bundle, BlockInfoVec *xmit_blocks, const BlockInfo *source, const LinkRef &link, list_owner_t list) |
Virtual from BlockProcessor. | |
int | generate (const Bundle *bundle, BlockInfoVec *xmit_blocks, BlockInfo *block, const LinkRef &link, bool last) |
Virtual from BlockProcessor. | |
bool | validate (const Bundle *bundle, BlockInfoVec *block_list, BlockInfo *block, status_report_reason_t *reception_reason, status_report_reason_t *deletion_reason) |
Virtual from BlockProcessor. |
Block processor implementation for any unknown bundle blocks.
Definition at line 29 of file UnknownBlockProcessor.h.
dtn::UnknownBlockProcessor::UnknownBlockProcessor | ( | ) |
Constructor.
Definition at line 33 of file UnknownBlockProcessor.cc.
int dtn::UnknownBlockProcessor::generate | ( | const Bundle * | bundle, | |
BlockInfoVec * | xmit_blocks, | |||
BlockInfo * | block, | |||
const LinkRef & | link, | |||
bool | last | |||
) | [virtual] |
Virtual from BlockProcessor.
Implements dtn::BlockProcessor.
Definition at line 68 of file UnknownBlockProcessor.cc.
References ASSERT, dtn::BundleProtocol::BLOCK_FLAG_DISCARD_BLOCK_ONERROR, dtn::BundleProtocol::BLOCK_FLAG_DISCARD_BUNDLE_ONERROR, dtn::BundleProtocol::BLOCK_FLAG_FORWARDED_UNPROCESSED, dtn::BundleProtocol::BLOCK_FLAG_LAST_BLOCK, BP_SUCCESS, dtn::BlockInfo::contents(), dtn::BlockInfo::data_length(), dtn::BlockInfo::data_offset(), dtn::BlockInfo::eid_list(), dtn::BlockInfo::flags(), dtn::BlockInfo::full_length(), dtn::BlockProcessor::generate_preamble(), dtn::BlockInfo::owner(), dtn::BlockInfo::set_eid_list(), dtn::BlockInfo::source(), dtn::BlockInfo::type(), and dtn::BlockInfo::writable_contents().
int dtn::UnknownBlockProcessor::prepare | ( | const Bundle * | bundle, | |
BlockInfoVec * | xmit_blocks, | |||
const BlockInfo * | source, | |||
const LinkRef & | link, | |||
list_owner_t | list | |||
) | [virtual] |
Virtual from BlockProcessor.
Reimplemented from dtn::BlockProcessor.
Definition at line 44 of file UnknownBlockProcessor.cc.
References ASSERT, dtn::BundleProtocol::BLOCK_FLAG_DISCARD_BLOCK_ONERROR, BP_FAIL, dtn::BundleProtocol::BUNDLE_AUTHENTICATION_BLOCK, dtn::BlockInfo::flags(), dtn::BlockInfo::owner(), and dtn::BlockInfo::type().
bool dtn::UnknownBlockProcessor::validate | ( | const Bundle * | bundle, | |
BlockInfoVec * | block_list, | |||
BlockInfo * | block, | |||
status_report_reason_t * | reception_reason, | |||
status_report_reason_t * | deletion_reason | |||
) | [virtual] |
Virtual from BlockProcessor.
Reimplemented from dtn::BlockProcessor.
Definition at line 121 of file UnknownBlockProcessor.cc.
References dtn::BundleProtocol::BLOCK_FLAG_DISCARD_BUNDLE_ONERROR, dtn::BundleProtocol::BLOCK_FLAG_REPORT_ONERROR, dtn::BlockInfo::flags(), dtn::BundleProtocol::REASON_BLOCK_UNINTELLIGIBLE, and dtn::BlockProcessor::validate().