settimestampdelta.hh

来自「COPE the first practical network coding 」· HH 代码 · 共 59 行

HH
59
字号
// -*- mode: c++; c-basic-offset: 4 -*-#ifndef CLICK_SETTIMESTAMPDELTA_HH#define CLICK_SETTIMESTAMPDELTA_HH#include <click/element.hh>CLICK_DECLS/*=cSetTimestampDelta()=s measurement, analysisreplace packet timestamps with deltas=dSetTimestampDelta passes packets through, but nonzero packet timestamps arereplaced with deltas relative to the first nonzero timestamp encountered.Keyword arguments are:=h first read-onlyReturns the earliest nonzero timestamp observed, if any.=h reset write-onlyClears the timestamp record. Future packet timestamps will be measuredrelative to the next nonzero timestamp encountered.=aTimeFilter */class SetTimestampDelta : public Element { public:    SetTimestampDelta();    ~SetTimestampDelta();    const char *class_name() const	{ return "SetTimestampDelta"; }    const char *processing() const	{ return AGNOSTIC; }    void add_handlers();    Packet *simple_action(Packet *);      private:    Timestamp _first;    static String read_handler(Element *, void *);    static int write_handler(const String &, Element *, void *, ErrorHandler*);    };CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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