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

📄 packetstore.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
#ifndef CLICK_PACKETSTORE_HH#define CLICK_PACKETSTORE_HH#include <click/element.hh>#include <click/glue.hh>#include <click/dequeue.hh>#include <click/notifier.hh>#include <clicknet/wifi.h>CLICK_DECLS/* * =c * PacketStore(I<KEYWORKDS>) * * =s Wifi * Log transmit feedback stats for later analysis. * * =d * PacketStore 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 PacketStore : public Element { public:  PacketStore();  ~PacketStore();  const char *class_name() const		{ return "PacketStore"; }  const char *port_count() const		{ return PORTS_1_1; }  const char* processing() const		{ return AGNOSTIC; }  int initialize(ErrorHandler *);  const char *flow_code() const			{ return "#/#"; }  void *cast(const char *);  Packet *simple_action(Packet *);  int configure(Vector<String> &, ErrorHandler *);  bool can_live_reconfigure() const		{ return false; }  void add_handlers();  class store {  public:	  Timestamp timestamp;	  char data[80];	  int len;  };  DEQueue <store> _packets;  int _dirty;  bool run_task(Task *);  Task _task;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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