📄 tee.hh
字号:
#ifndef CLICK_TEE_HH#define CLICK_TEE_HH#include <click/element.hh>CLICK_DECLS/* * =c * Tee([N]) * * PullTee([N]) * =s basictransfer * duplicates packets * =d * Tee sends a copy of each incoming packet out each output. * * PullTee's input and its first output are pull; its other outputs are push. * Each time the pull output pulls a packet, it * sends a copy out the push outputs. * * Tee and PullTee have however many outputs are used in the configuration, * but you can say how many outputs you expect with the optional argument * N. */class Tee : public Element { public: Tee(); ~Tee(); const char *class_name() const { return "Tee"; } const char *port_count() const { return "1/1-"; } const char *processing() const { return PUSH; } int configure(Vector<String> &, ErrorHandler *); void push(int, Packet *);};class PullTee : public Element { public: PullTee(); ~PullTee(); const char *class_name() const { return "PullTee"; } const char *port_count() const { return "1/1-"; } const char *processing() const { return "l/lh"; } int configure(Vector<String> &, ErrorHandler *); Packet *pull(int);};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -