diff -r c244287035f5 -r c02ca5a6ab82 servlib/bundling/BPQBlockProcessor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/servlib/bundling/BPQBlockProcessor.h Wed May 04 15:44:40 2011 +0100 @@ -0,0 +1,35 @@ +#ifndef _BPQ_BLOCK_PROCESSOR_H_ +#define _BPQ_BLOCK_PROCESSOR_H_ + +#include "BlockProcessor.h" +#include + +namespace dtn { + +/** + * Block processor implementation for the BPQ Extension Block + */ +class BPQBlockProcessor : public BlockProcessor { +public: + /// Constructor + BPQBlockProcessor(); + + /// @{ Virtual from BlockProcessor + + int consume(Bundle* bundle, + BlockInfo* block, + u_char* buf, + size_t len); + + int generate(const Bundle* bundle, + BlockInfoVec* xmit_blocks, + BlockInfo* block, + const LinkRef& link, + bool last); + + /// @} +}; + +} // namespace dtn + +#endif /* _BPQ_BLOCK_PROCESSOR_H_ */