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

📄 aggregatepaint.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
// -*- c-basic-offset: 4 -*-#ifndef CLICK_AGGREGATEPAINT_HH#define CLICK_AGGREGATEPAINT_HH#include <click/element.hh>CLICK_DECLS/*=cAggregatePaint([BITS, I<KEYWORDS>])=s aggregatessets aggregate annotation based on paint annotation=dAggregatePaint sets the aggregate annotation on every passing packet to aportion of that packet's paint annotation.  By default, it is simply set tothe paint annotation; but if you specify a number for BITS, then only thelow-order BITS bits of the annotation are used.Keyword arguments are:=over 8=item INCREMENTALBoolean.  If true, then incrementally update the aggregate annotation: given apaint annotation with value V, and an old aggregate annotation of O, the newaggregate annotation will equal (O * 2^LENGTH) + V.  Default is false.=back=aAggregateLength, AggregateIPFlows, AggregateCounter, AggregateIP*/class AggregatePaint : public Element { public:    AggregatePaint();    ~AggregatePaint();    const char *class_name() const	{ return "AggregatePaint"; }    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:    int _bits;    bool _incremental;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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