timedsink.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 40 行
HH
40 行
#ifndef CLICK_TIMEDSINK_HH#define CLICK_TIMEDSINK_HH#include <click/element.hh>#include <click/timer.hh>CLICK_DECLS/* * =c * TimedSink(I) * =s sinks * periodically pulls and drops a packet * =d * Pulls one packet every I seconds from its input. * Discards the packet. * =a Shaper */class TimedSink : public Element { Timer _timer; int _interval; public: TimedSink(); ~TimedSink(); const char *class_name() const { return "TimedSink"; } const char *processing() const { return PULL; } int configure(Vector<String> &, ErrorHandler *); int initialize(ErrorHandler *); void run_timer(); };CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?