📄 frontdropqueue.hh
字号:
#ifndef CLICK_FRONTDROPQUEUE_HH#define CLICK_FRONTDROPQUEUE_HH#include "notifierqueue.hh"CLICK_DECLS/*=cFrontDropQueueFrontDropQueue(CAPACITY)=s storagestores packets in drop-from-front FIFO queue=dStores incoming packets in a first-in-first-out queue. Drops the head packetbefore inserting the incoming packet if the queue already holds CAPACITYpackets. The default for CAPACITY is 1000.=h length read-onlyReturns the current number of packets in the queue.=h highwater_length read-onlyReturns the maximum number of packets that have ever been in the queue at once.=h capacity read/writeReturns or sets the queue's capacity.=h drops read-onlyReturns the number of packets dropped by the Queue so far.=h reset_counts write-onlyWhen written, resets the C<drops> and C<highwater_length> counters.=h reset write-onlyWhen written, drops all packets in the Queue.=a Queue, SimpleQueue, MixedQueue, RED*/class FrontDropQueue : public NotifierQueue { public: FrontDropQueue(); ~FrontDropQueue(); const char *class_name() const { return "FrontDropQueue"; } void *cast(const char *); int live_reconfigure(Vector<String> &, ErrorHandler *); void take_state(Element *, ErrorHandler *); void push(int port, Packet *); };CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -