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

📄 randomsource.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef CLICK_RANDOMSOURCE_HH#define CLICK_RANDOMSOURCE_HH#include <click/element.hh>#include <click/task.hh>CLICK_DECLS/* * =c * RandomSource(LENGTH) * =s sources * generates random packets whenever scheduled * =d * * Creates packets, of the indicated length, filled with random bytes. * Packets' timestamp annotations are set to the current time. * * =a InfiniteSource */class RandomSource : public Element { public:    RandomSource();  ~RandomSource();    const char *class_name() const		{ return "RandomSource"; }  const char *processing() const		{ return AGNOSTIC; }  int configure(Vector<String> &, ErrorHandler *);  int initialize(ErrorHandler *);  void add_handlers();  Packet *pull(int);  bool run_task(); protected:    int _length;  Task _task;    Packet *make_packet();};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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