📄 setretry.hh
字号:
#ifndef CLICK_SETRETRY_HH#define CLICK_SETRETRY_HH#include <click/element.hh>//#include <click/glue.hh>CLICK_DECLS/*=cSetRetry([I<KEYWORDS>])=s WifiSets the number of retries for a packet. (Put this after the elementsinvolving rates to overwrite the number of retries set there.)=dSets the Wifi max retries Annotation on a packet.Regular Arguments:=over 8=item RETRIES Unsigned integer. If it's larger than WIFI_MAX_RETRIES then it's ignored=a SetTxRate*/class SetRetry : public Element { public: SetRetry(); ~SetRetry(); const char *class_name() const { return "SetRetry"; } const char *processing() const { return AGNOSTIC; } int configure(Vector<String> &, ErrorHandler *); bool can_live_reconfigure() const { return true; } Packet *simple_action(Packet *); void add_handlers(); static String max_retries(Element *e, void *); static int update_retries(const String &arg, Element *e, void *, ErrorHandler *errh);private: int _retries;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -