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

📄 stationtable.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef CLICK_STATIONTABLE_HH#define CLICK_STATIONTABLE_HH#include <click/element.hh>#include <click/ipaddress.hh>#include <click/etheraddress.hh>#include <click/bighashmap.hh>#include <click/glue.hh>CLICK_DECLSclass Station {public:  EtherAddress _eth;  struct timeval _when; // When we last heard from this node.  Station() {     memset(this, 0, sizeof(*this));  }};  class StationTable : public Element { public:    StationTable();  ~StationTable();    const char *class_name() const		{ return "StationTable"; }  int configure(Vector<String> &, ErrorHandler *);  bool can_live_reconfigure() const		{ return true; }  void add_handlers();  void take_state(Element *e, ErrorHandler *);  bool _debug;private:    typedef HashMap<EtherAddress, Station> STable;  typedef STable::const_iterator STIter;    STable _table;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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