burster.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 50 行
HH
50 行
#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 + =
减小字号Ctrl + -
显示快捷键?