duppath.hh

来自「COPE the first practical network coding 」· HH 代码 · 共 32 行

HH
32
字号
#ifndef CLICK_DUPPATH_HH#define CLICK_DUPPATH_HH#include <click/element.hh>CLICK_DECLSclass DupPath : public Element {  struct {    Packet **_q;    unsigned _head;    unsigned _tail;  } _q;  int next_i(int i) const { return (i!=128 ? i+1 : 0); }  Packet *deq(); public:    DupPath();  ~DupPath();    const char *class_name() const		{ return "DupPath"; }  const char *processing() const		{ return "h/hl"; }  int initialize(ErrorHandler *);  void cleanup(CleanupStage);    void push(int port, Packet *);  Packet *pull(int port);};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?