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

📄 hashswitch.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef CLICK_HASHSWITCH_HH#define CLICK_HASHSWITCH_HH#include <click/element.hh>CLICK_DECLS/* * =c * HashSwitch(OFFSET, LENGTH) * =s classification * classifies packets by hash of contents * =d * Can have any number of outputs. * Chooses the output on which to emit each packet based on * a hash of the LENGTH bytes starting at OFFSET. * Could be used for stochastic fair queuing. * =e * This element expects IP packets and chooses the output * based on a hash of the IP destination address: *  *   HashSwitch(16, 4) * =a * Switch, RoundRobinSwitch, StrideSwitch, RandomSwitch */class HashSwitch : public Element {  int _offset;  int _length;   public:    HashSwitch();  ~HashSwitch();    const char *class_name() const		{ return "HashSwitch"; }  const char *processing() const		{ return PUSH; }  void notify_noutputs(int);    int configure(Vector<String> &, ErrorHandler *);    void push(int port, Packet *);  };CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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