storetimestamp.hh

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

HH
60
字号
// -*- mode: c++; c-basic-offset: 4 -*-#ifndef CLICK_STORETIMESTAMP_HH#define CLICK_STORETIMESTAMP_HH#include <click/element.hh>CLICK_DECLS/*=cStoreTimestamp([I<keywords> OFFSET, TAIL])=s measurement, analysisstore packet timestamps in packet data=dStoreTimestamp stores each packet's timestamp annotation somewhere in itsdata.  Supply exactly one of the OFFSET and TAIL keywords.Keyword arguments are:=over 8=item OFFSETInteger.  Store the timestamp starting OFFSET bytes into the packet.  Thepacket will be extended, if necessary, so that it's at least OFFSET+8 byteslong.=item TAILBoolean.  If true, the timestamp will be tacked on to the end of the packet.=back=aSetTimestamp */class StoreTimestamp : public Element { public:    StoreTimestamp();    ~StoreTimestamp();    const char *class_name() const	{ return "StoreTimestamp"; }    const char *processing() const	{ return AGNOSTIC; }    int configure(Vector<String> &, ErrorHandler *);    Packet *simple_action(Packet *);      private:    int _offset;    };CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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