⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 incseqno.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef INCSEQNO_HH#define INCSEQNO_HH/* * =c * IncrementSeqNo([I<KEYWORDS>]) * * =s Grid * =d  * * Store a 32-bit unsigned integer sequence number in packets, at a * specified offset.  The number is incremented with each packet that * passes through the element. * * Keywords are: * * =over 8 * * =item OFFSET * * Unsigned integer.  Byte offset at which to store sequence number. * Defaults to 0. * * =item FIRST * * Unsigned integer.  First sequence number to use.  Defaults to 0. * * =item NET_BYTE_ORDER * * Boolean.  Should the sequence number be stored in network byte * order?  If not, host byte order is used.  Defaults to false. * * =back * * =h seq read-only * * The next sequence number that will be written into a packet. * * =a  * InfiniteSource */#include <click/element.hh>CLICK_DECLSclass IncrementSeqNo : public Element  {  public:  IncrementSeqNo();  ~IncrementSeqNo();  const char *class_name() const		{ return "IncrementSeqNo"; }  const char *processing() const		{ return AGNOSTIC; }    int configure(Vector<String> &, ErrorHandler *);  int initialize(ErrorHandler *);  void add_handlers();  bool can_live_reconfigure() const		{ return true; }    Packet *simple_action(Packet *);private:  static String next_seq(Element *e, void *);  static int write_seq(const String &in_s, Element *e, void *vparam,		       ErrorHandler *errh);  uint32_t _seqno;  unsigned int _offset;  bool _use_net_byteorder;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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