cpuswitch.hh
来自「Click is a modular router toolkit. To us」· HH 代码 · 共 33 行
HH
33 行
#ifndef CPUSWITCH_HH#define CPUSWITCH_HH#include <click/element.hh>/* * =c * CPUSwitch() * =s smpclick * classifies packets by cpu * =d * Can have any number of outputs. * Chooses the output on which to emit each packet based on the thread's cpu. * =a * RoundRobinSwitch, StrideSwitch, HashSwitch */class CPUSwitch : public Element { public: CPUSwitch(); ~CPUSwitch(); const char *class_name() const { return "CPUSwitch"; } const char *port_count() const { return "1/1-"; } const char *processing() const { return PUSH; } void push(int port, Packet *);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?