资源简介
nginx服务器安装时用到的插件亲测有效。
代码片段和文件信息
/* Portions of this file are subject to the following copyright(s). See
* the Net-SNMP‘s COPYING file for more details and other copyrights
* that may apply:
*/
/*
* Portions of this file are copyrighted by:
* Copyright ?2003 Sun Microsystems Inc. All rights reserved.
* Use is subject to license terms specified in the COPYING file
* distributed with the Net-SNMP package.
*/
#include
#include
#if HAVE_STRING_H
#include
#endif
#include
#include
#include
static netsnmp_mib_handler *_clone_handler(netsnmp_mib_handler *it);
/***********************************************************************/
/*
* New Handler based API
*/
/***********************************************************************/
/** @defgroup handler Net-SNMP Agent handler and extensibility API
* @ingroup agent
*
* The basic theory goes something like this: In the past with the
* original mib module api (which derived from the original CMU SNMP
* code) the underlying mib modules were passed very little
* information (only the truly most basic information about a
* request). This worked well at the time but in todays world of
* subagents device instrumentation low resource consumption etc
* it just isn‘t flexible enough. “handlers“ are here to fix all that.
*
* With the rewrite of the agent internals for the net-snmp 5.0
* release we introduce a modular calling scheme that allows agent
* modules to be written in a very flexible manner and more
* importantly allows reuse of code in a decent way (and without the
* memory and speed overheads of OO languages like C++).
*
* Functionally the notion of what a handler does is the same as the
* older api: A handler is @link netsnmp_create_handler() created@endlink and
* then @link netsnmp_register_handler() registered@endlink with the main
* agent at a given OID in the OID tree and gets called any time a
* request is made that it should respond to. You probably should
* use one of the convenience helpers instead of doing anything else
* yourself though:
*
* Most importantly though is that the handlers are built on the
* notion of modularity and reuse. Specifically rather than do all
* the really hard work (like parsing table indexes out of an
* incoming oid request) in each module the API is designed to make
* it easy to write “helper“ handlers that merely process some aspect
* of the request before passing it along to the final handler that
* returns the real answer. Most people will want to make use of the
* @link instance instance@endlink @link table table@endlink @link
* table_iterator table_iterator@endlink @link table_data
* table_data@endlink or @link table_dataset table_dataset@endlink
* helpers to make their life easier. These “helpers“ interpert
* important aspects o
- 上一篇:三维模型网格简化源码
- 下一篇:skin++2.1完全破解版(送50个皮肤).rar
相关资源
- uboot到linux logo显示不间断 补丁
- UNIX/LINUX编程实践教程的源码
- Linux任务管理器
- linux应用层的华容道游戏源代码
- ubuntu9.10 可加载内核模块和字符设备驱
- MP3文件ID3v2ID3v2APEv2标签读取
- 操作系统实验——虚存管理实验
- linux下的发包工具sendip
- 尚观培训linux许巍关于c 的笔记和讲义
- 尚观培训linux董亮老师关于数据结构的
- linux 线程池源码 c 版
- linux C 电梯程序练习
- linux下用多进程同步方法解决生产者
- Linux 操作系统实验(全)
- Linux From Scratch 中文手册
- linux 网络实验 ftp程序
- Linux命令大全离线版&在线版
- 操作系统共享内存实验
- dos 下运行Linux 命令--gnu_utils
- linux 0.12内核源代码
- linux简易shell C实现
- linux实验报告及心得体会
- 基于GTK的Linux环境下的简易任务管理器
- linux扫雷游戏代码
- CAN Linux驱动代码
- Linux系统教材
- intel 82579LM 网卡驱动Linux系统版 v1.9.
- SA1110处理器掌上电脑液晶显示器设计
- 基于Linux的串口服务器设计
- Windows下访问LINUX的利器-SSH
评论
共有 条评论