b8b10.hh

来自「COPE the first practical network coding 」· HH 代码 · 共 36 行

HH
36
字号
#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 + =
减小字号Ctrl + -
显示快捷键?