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

📄 burster.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef CLICK_BURSTER_HH#define CLICK_BURSTER_HH#include <click/element.hh>#include <click/task.hh>#include <click/timer.hh>CLICK_DECLS/* * =c * Burster(I, N) * =s packet scheduling * pull-to-push converter * =d * Pulls N packets each interval I (seconds) from its input. * Pushes them out its single output. The interval can be * a floating point number. * * There are usually Queues both upstream and downstream * of Burster elements. *  * =n * The UNIX and Linux timers have granularity of about 10 * milliseconds, so this Burster can only produce high packet * rates by being bursty. */class Burster : public Element { public:    Burster();  ~Burster();    const char *class_name() const                { return "Burster"; }  const char *processing() const       { return PULL_TO_PUSH; }    int configure(Vector<String> &, ErrorHandler *);  int initialize(ErrorHandler *);  void run_timer();   private:    int _npackets;  Timer _timer;  int _interval;  };CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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