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

📄 paintswitch.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef CLICK_PAINTSWITCH_HH#define CLICK_PAINTSWITCH_HH#include <click/element.hh>CLICK_DECLS/*=cPaintSwitch=s classificationsends packet stream to output chosen per-packet=dPaintSwitch sends every incoming packet to one of its output ports --specifically, output port number K, where K is the value of theincoming packet's Paint annotation.  If the paint annotation is set to255, the packet is duplicated and sent to all outputs.  Since thereare only 256 different paint annotations, including the special valueof 255, PaintSwitch can have up to 255 outputs.  If there is no outputport K, the packet is dropped.=a StaticSwitch, PullSwitch, RoundRobinSwitch, StrideSwitch, HashSwitch,RandomSwitch, Paint, PaintTee */class PaintSwitch : public Element { public:  PaintSwitch();  ~PaintSwitch();    const char *class_name() const		{ return "PaintSwitch"; }  const char *processing() const		{ return PUSH; }    void notify_noutputs(int);  int configure(Vector<String> &, ErrorHandler *);  void configuration(Vector<String> &) const;  bool can_live_reconfigure() const		{ return true; }    void push(int, Packet *);   private:  static String read_param(Element *, void *);  static int write_param(const String &, Element *, void *, ErrorHandler *);  };CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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