pullswitch.hh

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

HH
66
字号
#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 + =
减小字号Ctrl + -
显示快捷键?