notifierdebug.hh

来自「Click is a modular router toolkit. To us」· HH 代码 · 共 48 行

HH
48
字号
#ifndef CLICK_NOTIFIERDEBUG_HH#define CLICK_NOTIFIERDEBUG_HH#include <click/element.hh>#include <click/notifier.hh>CLICK_DECLS/*=cNotifierDebug()=s testuseful for debugging notification=dResponds to each packet by pushing it unchanged out its first output.  Thepurpose of this element is that it provides a "signal" handler, which reportsthe unparsed version of the appropriate notification signal.  If the elementis in a push context, this is the downstream full signal; if it's in a pullcontext, this is the upstream empty signal.=h signal rReturns the unparsed version of the signal.*/class NotifierDebug : public Element { public:    NotifierDebug();    ~NotifierDebug();    const char *class_name() const	{ return "NotifierDebug"; }    const char *port_count() const	{ return PORTS_1_1; }    int initialize(ErrorHandler *errh);    void add_handlers();    Packet *simple_action(Packet *);  private:    NotifierSignal _signal;    static String read_handler(Element *, void *);};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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