00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef _SEQUENCE_BLOCK_ID_PROCESSOR_H_
00018 #define _SEQUENCE_BLOCK_ID_PROCESSOR_H_
00019
00020 #include "BlockProcessor.h"
00021
00022 namespace dtn {
00023
00029 class SequenceIDBlockProcessor : public BlockProcessor {
00030 public:
00032 SequenceIDBlockProcessor(u_int8_t block_type);
00033
00035 int prepare(const Bundle* bundle, BlockInfoVec* xmit_blocks,
00036 const BlockInfo* source, const LinkRef& link,
00037 BlockInfo::list_owner_t list);
00038
00039 int generate(const Bundle* bundle, BlockInfoVec* xmit_blocks,
00040 BlockInfo* block, const LinkRef& link, bool last);
00041
00042 int consume(Bundle* bundle, BlockInfo* block, u_char* buf, size_t len);
00044 };
00045
00046 }
00047
00048 #endif