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