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

📄 staticswitch.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_STATICSWITCH_HH#define CLICK_STATICSWITCH_HH#include <click/element.hh>CLICK_DECLS/* * =c * StaticSwitch(OUTPUT) * =s classification * sends packet stream to fixed output * =d * * StaticSwitch sends every incoming packet to one of its output ports -- * specifically, OUTPUT. Negative OUTPUT 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 OUTPUT 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 *port_count() const		{ return "1/-"; }  const char *processing() const		{ return PUSH; }  int configure(Vector<String> &, ErrorHandler *);  void push(int, Packet *);};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -