⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 khandlerproxy.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef CLICK_KERNELHANDLERPROXY_HH#define CLICK_KERNELHANDLERPROXY_HH#include "elements/userlevel/handlerproxy.hh"CLICK_DECLS/*=cKernelHandlerProxy([I<KEYWORDS>])=s debuggingproxies kernel module handlers at user level=ioNone=dProvides one proxy handler for each handler in a Linux kernel module Clickconfiguration. The proxy handler for an element C<e>'s handler C<h> is named`C<e.h>'. Reading KernelHandlerProxy's C<e.h> handler will return the resultof reading kernel element C<e>'s C<h> handler. Similarly, writing a string toKernelHandlerProxy's C<e.h> handler will cause the proxy to write that stringto kernel element C<e>'s C<h> handler.Keyword arguments are:=over 8=item VERBOSEBoolean. If true, print chatter messages when read handlers fail. (Errors withwrite handlers are reported to the supplied ErrorHandler, but read handlersdon't take an ErrorHandler argument.) Default is false.=back=nKernelHandlerProxy does not decide ahead of time whether a given handler isactive. Thus, for example, KernelHandlerProxy can report that a handler existseven when no corresponding element exists in the kernel configuration. Anyerror will be reported when the handler is actually called.=aSocketHandlerProxy*/class KernelHandlerProxy : public HandlerProxy { public:    KernelHandlerProxy();    ~KernelHandlerProxy();    const char* class_name() const	{ return "KernelHandlerProxy"; }    void* cast(const char*);    int configure(Vector<String>&, ErrorHandler*);      int check_handler(const String&, bool write, ErrorHandler* errh);      void add_handlers();    int llrpc(unsigned, void*);  private:    bool _detailed_error_message;    bool _verbose;      static int handler_hook(int, String&, Element*, const Handler*, ErrorHandler*);    static int star_write_handler(const String&, Element*, void*, ErrorHandler*);    int complain(ErrorHandler*, const String&, int errcode, const String&);    int complain_about_open(ErrorHandler*, const String&, int);    int check_handler_name(const String&, ErrorHandler*);  };CLICK_ENDDECLS#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -