paint.hh

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

HH
58
字号
#ifndef CLICK_PAINT_HH#define CLICK_PAINT_HH#include <click/element.hh>CLICK_DECLS/*=cPaint(X)=s annotationssets packet paint annotations=dSets each packet's paint annotation to X, an integer 0..255. Note that apacket may only be painted with one color.=h color read/writeget/set the color to paint=nThe paint annotation is stored in user annotation 0.=a PaintTee */class Paint : public Element {    unsigned char _color;   public:    Paint();  ~Paint();    const char *class_name() const		{ return "Paint"; }  const char *processing() const		{ return AGNOSTIC; }    int configure(Vector<String> &, ErrorHandler *);  bool can_live_reconfigure() const		{ return true; }  int color() const				{ return _color; }  void set_color(unsigned char in_color)	{ _color = in_color; }    Packet *simple_action(Packet *);  void add_handlers();  static String color_read_handler(Element *, void *);  };CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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