strideswitch.hh

来自「COPE the first practical network coding 」· HH 代码 · 共 40 行

HH
40
字号
#ifndef CLICK_STRIDESWITCH_HH#define CLICK_STRIDESWITCH_HH#include "elements/standard/stridesched.hh"CLICK_DECLS/* * =c * StrideSwitch(TICKETS0, ..., TICKETSI<N-1>) * =s classification * sends packets to stride-scheduled outputs * =d * Has one input and N outputs.  Performs simple packet-based stride * switching, assigning TICKETSI<i> to output I<i>. *  * Each time a packet arrives on the input, StrideSwitch sends the packet to * the next scheduled output according to the stride scheduling algorithm. * * =h tickets0...ticketsI<N-1> read/write * Returns or sets the number of tickets for each output port. * * =a RoundRobinSwitch, Switch, HashSwitch, RandomSwitch, StrideSched */class StrideSwitch : public StrideSched { public:    StrideSwitch();  ~StrideSwitch();  const char *class_name() const		{ return "StrideSwitch"; }  const char *processing() const		{ return PUSH; }    int configure(Vector<String> &conf, ErrorHandler *errh);    void push(int, Packet *);};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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