alignmentinfo.hh

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

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