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

📄 srlog.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef CLICK_SRLOG_HH#define CLICK_SRLOG_HH#include <click/element.hh>#include <click/glue.hh>#include <click/dequeue.hh>#include <clicknet/wifi.h>CLICK_DECLS/* * =c * SRLog(I<KEYWORKDS>) *  * =s Wifi * Log transmit feedback stats for later analysis. *  * =d  * SRLog records the size, timestamp, and other infor for * each packet that passed through.  The list of * recorded data can be dumped (and cleared) by repeated calls to the * read handler 'log'. * * =h log read-only * Print as much of the list of logged packets as possible, clearing  * printed packets from the log. * =h more read-only * Returns how many entries are left to be read. * =h reset write-only * Clears the log. * */class SRLog : public Element { public:    SRLog();  ~SRLog();    const char *class_name() const		{ return "SRLog"; }  const char *processing() const		{ return AGNOSTIC; }  const char *flow_code() const			{ return "#/#"; }    int configure(Vector<String> &, ErrorHandler *);  bool can_live_reconfigure() const		{ return true; }  Packet *simple_action(Packet *);  void add_handlers();  class Fo {  public:    char header[500];    int rate;    int retries;    u_int32_t flags;      };    DEQueue<Fo> _p;  DEQueue<struct timeval> _t;  bool _active;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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