📄 setannobyte.hh
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -