#include <APIBlockProcessor.h>

Definition at line 29 of file APIBlockProcessor.h.
Public Member Functions | |
| APIBlockProcessor () | |
| Constructor. | |
| int | consume (Bundle *bundle, BlockInfo *block, u_char *buf, size_t len) |
| Virtual from BlockProcessor. | |
| void | generate (const Bundle *bundle, Link *link, BlockInfo *block, bool last) |
| Virtual from BlockProcessor. | |
| 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 35 of file APIBlockProcessor.cc.
| void dtn::APIBlockProcessor::generate | ( | const Bundle * | bundle, | |
| Link * | link, | |||
| BlockInfo * | block, | |||
| bool | last | |||
| ) | [virtual] |
Virtual from BlockProcessor.
Implements dtn::BlockProcessor.
Definition at line 50 of file APIBlockProcessor.cc.
References ASSERT, dtn::BundleProtocol::BLOCK_FLAG_LAST_BLOCK, 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.3