pingpong.hh

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

HH
47
字号
#ifndef PINGPONGHH#define PINGPONGHH/* * =c * PingPong(LINKSTAT) * =s Grid * =d * * Expects Grid packets as input.  Places ping-pong link stats, * acquired from LINKSTAT, a LinkStat element, into outgoing unicast packets.  On the * other side of the link a LinkTracker element will aggregate these * statistics as neccessary. * * =a * AiroInfo, LinkStat, LinkTracker */#include <click/bighashmap.hh>#include <click/element.hh>#include <click/glue.hh>#include <click/ipaddress.hh>CLICK_DECLSclass LinkStat;class PingPong : public Element {  LinkStat *_ls;public:  PingPong();  ~PingPong();  const char *class_name() const		{ return "PingPong"; }  const char *port_count() const		{ return PORTS_1_1; }  const char *processing() const		{ return "a/a"; }  int configure(Vector<String> &, ErrorHandler *);  int initialize(ErrorHandler *);  Packet *simple_action(Packet *);};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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