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

📄 rripmapper.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef CLICK_RRIPMAPPER_HH#define CLICK_RRIPMAPPER_HH#include "elements/ip/iprw.hh"CLICK_DECLS/* * =c * RoundRobinIPMapper(PATTERN1, ..., PATTERNn) * =s TCP * round-robin mapper for IPRewriter(n) * =io * None * =d * * Works in tandem with IPRewriter to provide round-robin rewriting. This is * useful, for example, in load-balancing applications. Implements the * IPMapper interface. * * Responds to mapping requests from an IPRewriter by trying the PATTERNs in * round-robin order and returning the first successfully created mapping. * * =a IPRewriter, TCPRewriter, IPRewriterPatterns */class RoundRobinIPMapper : public Element, public IPMapper { public:  RoundRobinIPMapper();  ~RoundRobinIPMapper();  const char *class_name() const	{ return "RoundRobinIPMapper"; }  void *cast(const char *);    int configure_phase() const		{ return IPRw::CONFIGURE_PHASE_MAPPER;}  int configure(Vector<String> &, ErrorHandler *);  void cleanup(CleanupStage);    void notify_rewriter(IPRw *, ErrorHandler *);  IPRw::Mapping *get_map(IPRw *, int ip_p, const IPFlowID &, Packet *); private:  Vector<IPRw::Pattern *> _patterns;  Vector<int> _forward_outputs;  Vector<int> _reverse_outputs;  int _last_pattern;  };CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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