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

📄 timerange.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
// -*- mode: c++; c-basic-offset: 4 -*-#ifndef CLICK_TIMERANGE_HH#define CLICK_TIMERANGE_HH#include <click/element.hh>CLICK_DECLS/*=cTimeRange(I<keyword SIMPLE>)=s measurement, analysismonitor range of packet timestamps=dTimeRange passes packets along unchanged, monitoring the smallest range thatcontains all of their timestamps. You can access that range with handlers.Keyword arguments are:=over 8=item SIMPLEBoolean. If true, then packets arrive at TimeRange with monotonicallyincreasing timestamps. Default is false.=back=h first read-onlyReturns the earliest timestamp observed, or "0.0" if no packets have passed.=h last read-onlyReturns the latest timestamp observed, or "0.0" if no packets have passed.=h range read-onlyReturns the earliest and latest timestamps observed, separated by a space.=h interval read-onlyReturns the difference between the earliest and latest timestamps observed,in seconds.=h reset write-onlyClears the stored range. Future packets will accumulate a new range.=aTimeFilter */class TimeRange : public Element { public:    TimeRange();    ~TimeRange();    const char *class_name() const	{ return "TimeRange"; }    const char *processing() const	{ return AGNOSTIC; }    int configure(Vector<String> &, ErrorHandler *);    void add_handlers();    Packet *simple_action(Packet *);      private:    Timestamp _first;    Timestamp _last;        bool _simple;    static String read_handler(Element *, void *);    static int write_handler(const String &, Element *, void *, ErrorHandler*);    };CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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