Block processor implementation for any bundle block generated by the API. More...
#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. |
Block processor implementation for any bundle block generated by the API.
Definition at line 29 of file APIBlockProcessor.h.
dtn::APIBlockProcessor::APIBlockProcessor | ( | ) |
Constructor.
Definition at line 28 of file APIBlockProcessor.cc.
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.
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 50 of file APIBlockProcessor.cc.