setretry.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 54 行
HH
54 行
#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 + =
减小字号Ctrl + -
显示快捷键?