scramble.hh

来自「Click is a modular router toolkit. To us」· HH 代码 · 共 33 行

HH
33
字号
#ifndef SCRAMBLE_HH#define SCRAMBLE_HH#include <click/element.hh>CLICK_DECLS/* * Scramble() * * Exclusive-or each packet with a fixed repeating * sequence of bits. The point is to try to end up * with a balanced number of ones and zeroes so that * simple transmission equipment will be happy. * The BIM radio, for example. * * Scramble is its own inverse. */class Scramble : public Element {public:  Scramble();  ~Scramble();  const char *class_name() const	{ return "Scramble"; }  const char *port_count() const	{ return PORTS_1_1; }  const char *processing() const	{ return AGNOSTIC; }  Packet *simple_action(Packet *);};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?