pullswitch.hh

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

HH
65
字号
#ifndef CLICK_PULLSWITCH_HH#define CLICK_PULLSWITCH_HH#include <click/element.hh>CLICK_DECLS/*=cPullSwitch([INPUT])=s schedulingforwards pull requests to settable input=dOn every pull, PullSwitch returns the packet pulled from one of its inputports -- specifically, INPUT. The default INPUT is zero; negative INPUTsmean always return a null packet. You can change INPUT 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 *port_count() const		{ return "-/1"; }  const char *processing() const		{ return PULL; }  int configure(Vector<String> &, ErrorHandler *);  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 + -
显示快捷键?