upstreamnotifier.hh

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

HH
53
字号
#ifndef CLICK_UPSTREAMNOTIFIER_HH#define CLICK_UPSTREAMNOTIFIER_HH#include <click/element.hh>#include <click/notifier.hh>CLICK_DECLS/*=cUpstreamNotifier([SIGNAL])=s testpasses packets unchanged. Has an upstream notifier. Generally usedfor testing upstream notification.=dResponds to each packet by pushing it unchanged out its first output.Keyword arguments are:=over 8=item SIGNALBoolean. Whether to set the upstream signal to active.=h signal read/writeReturns if the signal is active. Same as the SIGNAL argument.=aPullNull, PokeHandlers, InfiniteSource*/class UpstreamNotifier : public Element { public:  UpstreamNotifier();  ~UpstreamNotifier();  const char *class_name() const	{ return "UpstreamNotifier"; }  const char *port_count() const	{ return PORTS_1_1; }  const char *processing() const	{ return PUSH; }  void *cast(const char *);  int configure(Vector<String> &conf, ErrorHandler *);  void add_handlers();  void push(int, Packet *);  ActiveNotifier _notifier;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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