⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pullswitch.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef CLICK_PULLSWITCH_HH#define CLICK_PULLSWITCH_HH#include <click/element.hh>CLICK_DECLS/*=cPullSwitch([K])=s packet schedulingforwards pull requests to settable input=dOn every pull, PullSwitch returns the packet pulled from one of its inputports -- specifically, input number K. The default K is zero; negative Ksmean always return a null packet. You can change K with a write handler.PullSwitch has an unlimited number of inputs.=h switch read/writeReturn or set the K parameter.=h CLICK_LLRPC_GET_SWITCH llrpcArgument is a pointer to an integer, in which the Switch's K parameter isstored.=h CLICK_LLRPC_SET_SWITCH llrpcArgument is a pointer to an integer. Sets the K parameter to that integer.=a StaticPullSwitch, PrioSched, RoundRobinSched, StrideSched, Switch */class PullSwitch : public Element { public:  PullSwitch();  ~PullSwitch();    const char *class_name() const		{ return "PullSwitch"; }  const char *processing() const		{ return PULL; }  void notify_ninputs(int);  int configure(Vector<String> &, ErrorHandler *);  void configuration(Vector<String> &) const;  bool can_live_reconfigure() const		{ return true; }  void add_handlers();      Packet *pull(int);  int llrpc(unsigned, void *);   private:  int _input;  static String read_param(Element *, void *);  static int write_param(const String &, Element *, void *, ErrorHandler *);  };CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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