stationtable.hh

来自「Click is a modular router toolkit. To us」· HH 代码 · 共 46 行

HH
46
字号
#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;  Timestamp _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"; }  const char *port_count() const		{ return PORTS_0_0; }  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 + =
减小字号Ctrl + -
显示快捷键?