ackresponder.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 44 行
HH
44 行
#ifndef CLICK_ACKRESPONDER_HH#define CLICK_ACKRESPONDER_HH#include <click/element.hh>#include <click/etheraddress.hh>CLICK_DECLS/* * =c * ACKResponder(ETH) * * =s Grid * Send positive acknowledgements to unicast data packets. * * =d * * Input should be Ethernet packets. When a packet addressed to ETH * is received on the input, it is passed through to output 0, and an * ACK response is pushed out of output 1. * * =a * ACKRetrySender */#define ETHERTYPE_GRID_ACK 0x7ffaclass ACKResponder : public Element {public: ACKResponder(); ~ACKResponder(); const char *class_name() const { return "ACKResponder"; } const char *processing() const { return "a/ah"; } const char *flow_code() const { return "x/xy"; } int configure(Vector<String> &, ErrorHandler *); Packet *simple_action(Packet *);private: EtherAddress _eth;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?