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

📄 pullswitch.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -