servlib/bundling/BPQBlockProcessor.h
changeset 4 c02ca5a6ab82
child 5 1849bf57d910
--- /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 <oasys/util/StringBuffer.h>
+
+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_ */