staticpullswitch.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 45 行
HH
45 行
#ifndef CLICK_STATICPULLSWITCH_HH#define CLICK_STATICPULLSWITCH_HH#include <click/element.hh>CLICK_DECLS/* * =c * StaticPullSwitch(K) * =s packet scheduling * forwards pull requests to fixed input * =d * * On every pull, StaticPullSwitch returns the packet pulled from one of its * input ports -- specifically, input number K. Negative Ks mean always return * a null packet. StaticPullSwitch has an unlimited number of inputs. * * =n * * StaticPullSwitch differs from PullSwitch in that it has no C<switch> write * handler, and thus does not allow K to be changed at run time. * * =a PullSwitch, PrioSched, RoundRobinSched, StrideSched, Switch */class StaticPullSwitch : public Element { int _input; public: StaticPullSwitch(); ~StaticPullSwitch(); const char *class_name() const { return "StaticPullSwitch"; } const char *processing() const { return PULL; } void notify_ninputs(int); int configure(Vector<String> &, ErrorHandler *); Packet *pull(int); };CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?