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

📄 alignmentinfo.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
// -*- c-basic-offset: 2; related-file-name: "../../../elements/standard/alignmentinfo.cc" -*-#ifndef CLICK_ALIGNMENTINFO_HH#define CLICK_ALIGNMENTINFO_HH#include <click/element.hh>CLICK_DECLS/* * =c * AlignmentInfo(ELEMENT [MODULUS OFFSET ...], ...) * =s information * specifies alignment information * =io * None * =d * Provides information about the packet alignment specified elements can * expect. Each configuration argument has the form * `ELEMENT [MODULUS0 OFFSET0 MODULUS1 OFFSET1 ...]', * where there are zero or more MODULUS-OFFSET pairs. * All packets arriving at ELEMENT's * I<n>th input will start `OFFSETI<n>' bytes * off from a `MODULUSI<n>'-byte boundary. * =n * This element is inserted automatically by click-align(1). * =a Align, click-align(1) */class AlignmentInfo : public Element { public:  AlignmentInfo();  ~AlignmentInfo();    const char *class_name() const	{ return "AlignmentInfo"; }  int configure_phase() const		{ return CONFIGURE_PHASE_INFO; }  int configure(Vector<String> &, ErrorHandler *);  bool query1(Element *, int port, int &chunk, int &offset) const;  static bool query(Element *, int port, int &chunk, int &offset); private:    Vector<int> _elem_offset;  Vector<int> _elem_icount;  Vector<int> _chunks;  Vector<int> _offsets;  };CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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