📄 bandwidthshaper.hh
字号:
// -*- 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -