📄 b8b10.hh
字号:
#ifndef CLICK_B8B10_HH#define CLICK_B8B10_HH#include <click/element.hh>CLICK_DECLS/* * B8B10(flag) * * If flag is 1, encode each packet with a 8b10b code. * If flag is 0, decode. * * Encodes each 8-bit byte into a 10-bit symbol with as * many 0s as 1s. The point is to keep the BIM-4xx-RS232 * radio happy. */class B8B10 : public Element {public: B8B10(); ~B8B10(); const char *class_name() const { return "B8B10"; } const char *processing() const { return AGNOSTIC; } int configure(Vector<String> &, ErrorHandler *); int initialize(ErrorHandler *); Packet *simple_action(Packet *);private: int _flag;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -