paint.hh

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

HH
52
字号
#ifndef CLICK_PAINT_HH#define CLICK_PAINT_HH#include <click/element.hh>CLICK_DECLS/*=cPaint(COLOR [, ANNO])=s paintsets packet paint annotations=dSets each packet's paint annotation to COLOR, an integer 0..255.Paint sets the packet's PAINT annotation by default, but the ANNO argument canspecify any one-byte annotation.=h color read/writeGet/set the color to paint.=a PaintTee */class Paint : public Element { public:    Paint();    ~Paint();    const char *class_name() const		{ return "Paint"; }    const char *port_count() const		{ return PORTS_1_1; }    const char *processing() const		{ return AGNOSTIC; }    int configure(Vector<String> &, ErrorHandler *);    bool can_live_reconfigure() const		{ return true; }    void add_handlers();    Packet *simple_action(Packet *);  private:    uint8_t _anno;    uint8_t _color;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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