📄 hub.hh
字号:
#ifndef CLICK_HUB_HH#define CLICK_HUB_HH#include <click/element.hh>CLICK_DECLS/*=cHub()=s basictransferduplicates packets like a hub=dHub sends a copy of each input packet out each output port. However, a packetreceived on input port N is not emitted on output port N. Thus, the elementacts sort of like an Ethernet hub (but it is not Ethernet specific).=aTee, EtherSwitch*/class Hub : public Element { public: Hub(); ~Hub(); const char *class_name() const { return "Hub"; } const char *port_count() const { return "-/="; } const char *processing() const { return PUSH; } const char *flow_code() const { return "#/[^#]"; } void push(int port, Packet* p);};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -