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

📄 settimestampdelta.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
// -*- mode: c++; c-basic-offset: 4 -*-#ifndef CLICK_SETTIMESTAMPDELTA_HH#define CLICK_SETTIMESTAMPDELTA_HH#include <click/element.hh>CLICK_DECLS/*=cSetTimestampDelta([I<keywords> TYPE])=s timestampsreplace packet timestamps with deltas=dSetTimestampDelta passes packets through, but nonzero packet timestamps arereplaced with deltas.Keyword arguments are:=over 8=item TYPESets the type of delta.  The default is C<RANGE>, which means the deltarelative to the first nonzero packet timestamp encountered.  Otherpossibilities are C<NOW>, which means the delta between its current timestampand now, and C<FIRST>, which means the delta between its first timestampannotation and its current timestamp.=back=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 *port_count() const	{ return PORTS_1_1; }    const char *processing() const	{ return AGNOSTIC; }    int configure(Vector<String> &, ErrorHandler *);    void add_handlers();    Packet *simple_action(Packet *);  private:    int _type;    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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -