rxstats.hh

来自「COPE the first practical network coding 」· HH 代码 · 共 82 行

HH
82
字号
#ifndef CLICK_RXSTATS_HH#define CLICK_RXSTATS_HH#include <click/element.hh>#include <click/etheraddress.hh>#include <click/bighashmap.hh>#include <click/glue.hh>CLICK_DECLS/*=cRXStats=s WifiTrack RSSI for each ethernet source.=dAccumulate RSSI, noise for each ethernet source you hear a packet from.=h statsPrint information accumulated for each source=h resetClear all information for each source=a ExtraDecap*/class RXStats : public Element { public:    RXStats();  ~RXStats();    const char *class_name() const		{ return "RXStats"; }  const char *processing() const		{ return AGNOSTIC; }    int configure(Vector<String> &, ErrorHandler *);  bool can_live_reconfigure() const		{ return true; }  Packet *simple_action(Packet *);  void add_handlers();  class DstInfo {  public:    EtherAddress _eth;    int _rate;    int _noise;    int _signal;    int _packets;    unsigned _sum_signal;    unsigned _sum_noise;    struct timeval _last_received;        DstInfo() {       memset(this, 0, sizeof(*this));    }    DstInfo(EtherAddress eth) {       memset(this, 0, sizeof(*this));      _eth = eth;    }  };  typedef HashMap<EtherAddress, DstInfo> NeighborTable;  typedef NeighborTable::const_iterator NIter;  NeighborTable _neighbors;  EtherAddress _bcast;  int _tau;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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