staticswitch.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 45 行
HH
45 行
#ifndef CLICK_STATICSWITCH_HH#define CLICK_STATICSWITCH_HH#include <click/element.hh>CLICK_DECLS/* * =c * StaticSwitch(K) * =s classification * sends packet stream to fixed output * =d * * StaticSwitch sends every incoming packet to one of its output ports -- * specifically, output number K. Negative K means to destroy input packets * instead of forwarding them. StaticSwitch has an unlimited number of * outputs. * * =n * StaticSwitch differs from Switch in that it has no C<switch> write handler, * and thus does not allow K to be changed at run time. * * =a Switch, StrideSwitch, PullSwitch */class StaticSwitch : public Element { int _output; public: StaticSwitch(); ~StaticSwitch(); const char *class_name() const { return "StaticSwitch"; } const char *processing() const { return PUSH; } void notify_noutputs(int); int configure(Vector<String> &, ErrorHandler *); void push(int, Packet *); };CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?