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