truncate.hh

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

HH
37
字号
// -*- mode: c++; c-basic-offset: 4 -*-#ifndef CLICK_TRUNCATE_HH#define CLICK_TRUNCATE_HH#include <click/element.hh>CLICK_DECLS/* * =c * Truncate(MAX) * =s encapsulation * strips bytes from the back of packets * =d * Deletes the last MAX bytes from each packet. * =a Strip */class Truncate : public Element { public:    Truncate();    ~Truncate();    const char *class_name() const		{ return "Truncate"; }    const char *processing() const		{ return AGNOSTIC; }    int configure(Vector<String> &, ErrorHandler *);    Packet *simple_action(Packet *);  private:    unsigned _nbytes;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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