setannobyte.hh
来自「Click is a modular router toolkit. To us」· HH 代码 · 共 52 行
HH
52 行
#ifndef CLICK_SETANNOBYTE_HH#define CLICK_SETANNOBYTE_HH#include <click/element.hh>CLICK_DECLS/*=cSetAnnoByte(ANNO, VALUE)=s annotationssets packet user annotations=dSets each packet's user annotation byte at ANNO to VALUE, an integer0..255. Permissible values for ANNO are 0 to n-1, inclusive, wheren is typically 48, or the name of a one-byte annotation.=h anno read-onlyReturns ANNO as an integer offset=h value read/writeReturns or sets VALUE=a Paint */class SetAnnoByte : public Element { public: SetAnnoByte(); ~SetAnnoByte(); const char *class_name() const { return "SetAnnoByte"; } 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: int _offset; unsigned char _value;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?