randomswitch.hh

来自「Click is a modular router toolkit. To us」· HH 代码 · 共 36 行

HH
36
字号
// -*- 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 *port_count() const	{ return "1/1-"; }    const char *processing() const	{ return PUSH; }    void push(int, Packet *);};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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