资源简介
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
相关资源
- Linux内核技术手册中文版235877
- linux程序设计第三版及习题答案
- linux串口与zigbee通信
- Easy 搞定Unix和Linux环境使用基础篇
- rtl8821ce linux版网卡驱动
- 实验六 Linux中的网络服务一
- [嵌入式Linux项目实战开发]基于QT4.7.
- CentOS-6.6-x86_64 nginx 依赖 pcre-devel zli
- cowsay+fortune rpm安装包
- linux系统分析与高级编程技术,清晰版
- LINUX 离线安装NFS
- Linux Shell 脚本攻略 中文 第三版和源码
- 车牌识别代码arm-Linux,opencv
-
Packt - em
bedded Linux Development Using Yo - Linux Firewalls Fourth Edition
- Linux服务器环境搭建及项目部署手册
- sapjco3-linuxx86_64-3.0.14.tgz
- sapjco3-linuxintel-3.0.14.tgz
- LINUX设备驱动程序第三版(美)科波特
- Linux带命令壁纸可修改版
- 《Linux内核设计与实现》第3版 英文文
- Linux操作系统原理 操作系统原理Linu
- x-waf-admin0.1-linux-amd64.tar.gz
- Linux下QT及OpenCV搭建
- 精通嵌入式Linux编程第二版原书高清
- nginx搭建flv流媒体教程与资源
- 最好的linux工具 man汉化包
- SELinux详解带完整中文标签
- MyEclipse2017 for linux 破解文件
- 山东大学操作系统实验报告
评论
共有 条评论