filterbyhops.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 40 行
HH
40 行
#ifndef CLICK_FILTERBYHOPS_HH#define CLICK_FILTERBYHOPS_HH#include <click/element.hh>CLICK_DECLS/* * =c * FilterByGridHops(NUM-HOPS) * =s Grid * =d * * Expects GRID_NBR_ENCAP packets with MAC headers on input 0. Any * packet that has travelled less than NUM-HOPS so fare is sent to * output 0. Packets that have already travelled NUM-HOPS or more are * sent out output 1. NUM-HOPS is an Integer. * * =a FilterByRange */class FilterByGridHops : public Element { public: FilterByGridHops(); ~FilterByGridHops(); const char *class_name() const { return "FilterByGridHops"; } const char *processing() const { return PUSH; } int configure(Vector<String> &, ErrorHandler *); int initialize(ErrorHandler *); void push(int port, Packet *);private: unsigned int _max_hops;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?