📄 randomswitch.hh
字号:
// -*- c-basic-offset: 4 -*-#ifndef CLICK_RANDOMSWITCH_HH#define CLICK_RANDOMSWITCH_HH#include <click/element.hh>#include <click/atomic.hh>CLICK_DECLS/* * =c * RandomSwitch * =s classification * sends packets to random outputs * =io * One input, one or more outputs * =d * Pushes each arriving packet to one of the N outputs, choosing outputs randomly. * * =a Switch, StrideSwitch, RoundRobinSwitch, HashSwitch */class RandomSwitch : public Element { public: RandomSwitch(); ~RandomSwitch(); const char *class_name() const { return "RandomSwitch"; } const char *processing() const { return PUSH; } void notify_noutputs(int); void push(int, Packet *); };CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -