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

📄 availablerates.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef CLICK_AVAILABLERATES_HH#define CLICK_AVAILABLERATES_HH#include <click/element.hh>#include <click/ipaddress.hh>#include <click/etheraddress.hh>#include <click/bighashmap.hh>#include <click/glue.hh>CLICK_DECLS/*=c AvailableRates()=s Wifi, Wireless Station, Wireless AccessPointTracks bit-rate capabilities of other stations.=dTracks a list of bitrates other stations are capable of.=h insert write-onlyInserts an ethernet address and a list of bitrates to the database.=h remove write-onlyRemoves an ethernet address from the database.=h rates read-onlyShows the entries in the database.=a BeaconScanner */class AvailableRates : public Element { public:    AvailableRates();  ~AvailableRates();    const char *class_name() const		{ return "AvailableRates"; }  int configure(Vector<String> &, ErrorHandler *);  void *cast(const char *n);  bool can_live_reconfigure() const		{ return true; }  void add_handlers();  void take_state(Element *e, ErrorHandler *);  Vector<int> lookup(EtherAddress eth);  int insert(EtherAddress eth, Vector<int>);  EtherAddress _bcast;  bool _debug;  int parse_and_insert(String s, ErrorHandler *errh);  class DstInfo {  public:    EtherAddress _eth;    Vector<int> _rates;    DstInfo() {       memset(this, 0, sizeof(*this));    }    DstInfo(EtherAddress eth) {       memset(this, 0, sizeof(*this));      _eth = eth;    }  };    typedef HashMap<EtherAddress, DstInfo> RTable;  typedef RTable::const_iterator RIter;    RTable _rtable;  Vector<int> _default_rates;private:};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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