discardnotify.hh

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

HH
32
字号
#ifndef DISCARDNOTIFY_HH#define DISCARDNOTIFY_HH#include <click/element.hh>#include <click/task.hh>#include "../../elements/standard/discard.hh"#include "queuenotify.hh"/* * =c * DiscardNotify * =s dropping * drops all packets * =d * Discards all packets received on its single input. * If used in a Pull context, it initiates pulls whenever * packets are available. */class DiscardNotify : public Discard, public NotifiedElement { public:  DiscardNotify();  ~DiscardNotify();  const char *class_name() const { return "DiscardNotify";}  int initialize(ErrorHandler *);  void notify(int signal);  bool run_task();protected:  bool _data_ready;};#endif

⌨️ 快捷键说明

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