copyflowid.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 47 行
HH
47 行
#ifndef CLICK_COPYFLOWID_HH#define CLICK_COPYFLOWID_HH#include <click/element.hh>#include <click/ipflowid.hh>CLICK_DECLS/* * =c * CopyFlowID() * =s UDP/TCP * sets UDP/TCP flow ID * =d * remembers flow id from packets between input/output 0, tag the flow id onto * packets between input/output 1. only remembers the flow id from the first * packet after initialization or reset. */class CopyFlowID : public Element {private: static int reset_write_handler (const String &, Element *, void *, ErrorHandler *); void monitor(Packet *); Packet *set(Packet *); bool _start; IPFlowID _flow;public: CopyFlowID(); ~CopyFlowID(); const char *class_name() const { return "CopyFlowID"; } const char *processing() const { return AGNOSTIC; } int initialize(ErrorHandler *); int configure(Vector<String> &conf, ErrorHandler *errh); void push(int, Packet *); Packet *pull(int); void add_handlers();};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?