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

📄 printold.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
#ifndef CLICK_PRINTOLD_HH#define CLICK_PRINTOLD_HH#include <click/element.hh>#include <click/string.hh>CLICK_DECLS/*=cPrintOld([LABEL, AGE, MAXLENGTH])=s debuggingconditionally prints packet contents=dPrints up to MAXLENGTH bytes of data from each packet, in hex, precededby the LABEL text, if more than AGE milliseconds have elapsed sincethe packet was timestamped.  Default AGE is 5 milliseconds.Default MAXLENGTH is 24.=aIPPrintPrint*/class PrintOld : public Element { public:  PrintOld();  ~PrintOld();  const char *class_name() const		{ return "PrintOld"; }  const char *port_count() const		{ return PORTS_1_1; }  const char *processing() const		{ return AGNOSTIC; }  int configure(Vector<String> &, ErrorHandler *);  Packet *simple_action(Packet *); private:  String _label;  int _bytes;			// How many bytes of a packet to print  int _thresh;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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