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

📄 gridprobehandler.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef GRIDPROBEHANDLER_HH#define GRIDPROBEHANDLER_HH#include <click/element.hh>#include <click/etheraddress.hh>#include <click/ipaddress.hh>#include <click/vector.hh>#include <click/bighashmap.hh>#include <click/timer.hh>#include "gridroutecb.hh"#include "lookuplocalgridroute.hh"#include "lookupgeogridroute.hh"#include "floodinglocquerier.hh"CLICK_DECLS/* * =c * GridProbeHandler(E, I, LookupLocalGridRoute, LookupGeographicGridRoute, FloodingLocQuerier) * =s Grid * Handles Grid route probes, producing probe replies * =d *  * E and I are this nodes's ethernet and IP addresses, respectively. * The 3rd, 4th, and 5th arguments are the configuration's local and * geographic forwarding elements.  They are required so that the * probe replies can contain information about the routing actions * taken for this packet. * * When a Grid probe is received on its input, pushes a probe reply * out of its second output, and pushes the probe out of the first * output (if the probe should be forwarded). * * =a GridProbeSender, GridProbeReplyReceiver, LookupLocalGridRoute, * LookupGeographicGridroute, FloodingLocQuerier */class GridProbeHandler : public Element, GridRouteActionCallback { public:  GridProbeHandler();  ~GridProbeHandler();    const char *class_name() const		{ return "GridProbeHandler"; }  const char *processing() const		{ return PUSH; }  int configure(Vector<String> &, ErrorHandler *);  int initialize(ErrorHandler *);  void push(int, Packet *);  void route_cb(int id, unsigned int dest_ip, Action a, unsigned int data, unsigned int data2);private:  EtherAddress _eth;  IPAddress _ip;  int _gf_cb_id;  int _fq_cb_id;  int _lr_cb_id;  LookupLocalGridRoute *_lr_el;  LookupGeographicGridRoute *_gf_el;  FloodingLocQuerier *_fq_el;  Packet *_cached_reply_pkt;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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