bandwidthshaper.hh

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

HH
41
字号
// -*- c-basic-offset: 4 -*-#ifndef CLICK_BANDWIDTHSHAPER_HH#define CLICK_BANDWIDTHSHAPER_HH#include "shaper.hh"CLICK_DECLS/* * =c * BandwidthShaper(RATE) * =s packet scheduling * shapes traffic to maximum rate (bytes/s)  * =processing * Pull * =d * * BandwidthShaper is a pull element that allows a maximum bandwidth of * RATE to pass through.  That is, output traffic is shaped to RATE. * If a BandwidthShaper receives a large number of * evenly-spaced pull requests, then it will emit packets at the specified * RATE with low burstiness. * * =h rate read/write * * Returns or sets the RATE parameter. * * =a Shaper, BandwidthRatedSplitter, BandwidthRatedUnqueue */class BandwidthShaper : public Shaper { public:      BandwidthShaper();    ~BandwidthShaper();      const char *class_name() const	{ return "BandwidthShaper"; }    Packet *pull(int);    void set_rate(unsigned);};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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