#include <APIBlockProcessor.h>

Public Member Functions | |
| APIBlockProcessor () | |
| Constructor. | |
| int | consume (Bundle *bundle, BlockInfo *block, u_char *buf, size_t len) |
| Virtual from BlockProcessor. | |
| int | generate (const Bundle *bundle, BlockInfoVec *xmit_blocks, BlockInfo *block, const LinkRef &link, bool last) |
| Virtual from BlockProcessor. | |
Definition at line 29 of file APIBlockProcessor.h.
| dtn::APIBlockProcessor::APIBlockProcessor | ( | ) |
| int dtn::APIBlockProcessor::consume | ( | Bundle * | bundle, | |
| BlockInfo * | block, | |||
| u_char * | buf, | |||
| size_t | len | |||
| ) | [virtual] |
Virtual from BlockProcessor.
Reimplemented from dtn::BlockProcessor.
Definition at line 39 of file APIBlockProcessor.cc.
| int dtn::APIBlockProcessor::generate | ( | const Bundle * | bundle, | |
| BlockInfoVec * | xmit_blocks, | |||
| BlockInfo * | block, | |||
| const LinkRef & | link, | |||
| bool | last | |||
| ) | [virtual] |
Virtual from BlockProcessor.
Implements dtn::BlockProcessor.
Definition at line 54 of file APIBlockProcessor.cc.
References ASSERT, dtn::BundleProtocol::BLOCK_FLAG_LAST_BLOCK, BP_SUCCESS, dtn::BlockInfo::contents(), dtn::BlockInfo::data_length(), dtn::BlockInfo::data_offset(), dtn::BlockInfo::flags(), dtn::BlockInfo::full_length(), dtn::BlockProcessor::generate_preamble(), dtn::BlockInfo::owner(), dtn::BlockInfo::source(), dtn::BlockInfo::type(), and dtn::BlockInfo::writable_contents().
1.5.8