亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? winsnmp.c

?? 又一款WEB游戲原代碼Bk_Sources_RPG?忠豢頦EB游戲原代碼Bk_Sources_RPG
?? C
字號:
/*Created from the snmputil sample in the Microsoft SDK for NT$Id: winsnmp.c,v 1.9 1998/12/28 09:34:51 sas Exp $ */#include "php.h"#include "internal_functions.h"#if COMPILE_DL#include "../phpdl.h"#include "functions/dl.h"#endif#include "php3_snmp.h"#include <sys/types.h>#include <windows.h>#include <stdio.h>#include <string.h>#include <malloc.h>#if HAVE_SNMP#include <snmp.h>#include <mgmtapi.h>function_entry snmp_functions[] = {    {"snmpget", php3_snmpget, NULL},    {"snmpwalk", php3_snmpwalk, NULL},    {NULL,NULL,NULL}};php3_module_entry snmp_module_entry = {	"SNMP",snmp_functions,NULL,NULL,NULL,NULL,NULL,0,0,0,NULL};#if COMPILE_DLDLEXPORT php3_module_entry *get_module() { return &snmp_module_entry; }#endif#define GET     1#define WALK    2#define GETNEXT 3#define TIMEOUT 6000 /* milliseconds */#define RETRIES 3void _php3_snmp(INTERNAL_FUNCTION_PARAMETERS, int st) {	pval *a1, *a2, *a3;	INT	operation;    LPSTR              agent;    LPSTR              community;    RFC1157VarBindList variableBindings;    LPSNMP_MGR_SESSION session;    INT        timeout = TIMEOUT;    INT        retries = RETRIES;    BYTE       requestType;    AsnInteger errorStatus;    AsnInteger errorIndex;    AsnObjectIdentifier oid;   char        *chkPtr = NULL;	if (getParameters(ht, 3, &a1, &a2, &a3) == FAILURE) {		WRONG_PARAM_COUNT;	}	convert_to_string(a1);	convert_to_string(a2);	convert_to_string(a3);	agent=a1->value.str.val;	community=a2->value.str.val;	operation=st;	SnmpMgrStrToOid(a3->value.str.val, &oid);/*    I've limited this to only one oid, but we can create a   list of oid's here, and expand the function to take multiple   oid's*/    variableBindings.list->name = oid;     variableBindings.list->value.asnType = ASN_NULL;    variableBindings.len = 1;/* Establish a SNMP session to communicate with the remote agent.  The   community, communications timeout, and communications retry count   for the session are also required.*/	if ((session = SnmpMgrOpen(agent, community, timeout, retries)) == NULL){		php3_error(E_WARNING,"error on SnmpMgrOpen %d\n", GetLastError());	}    /* Determine and perform the requested operation.*/    if (operation == GET || operation == GETNEXT){        /* Get and GetNext are relatively simple operations to perform.           Simply initiate the request and process the result and/or           possible error conditions. */        if (operation == GET){            requestType = ASN_RFC1157_GETREQUEST;		} else {            requestType = ASN_RFC1157_GETNEXTREQUEST;		}        /* Request that the API carry out the desired operation.*/		if (!SnmpMgrRequest(session, requestType, &variableBindings,                            &errorStatus, &errorIndex)){            /* The API is indicating an error. */            php3_error(E_WARNING,"error on SnmpMgrRequest %d\n", GetLastError());        } else {            /* The API succeeded, errors may be indicated from the remote               agent. */            if (errorStatus > 0){                php3_error(E_WARNING,"Error: errorStatus=%d, errorIndex=%d\n",                       errorStatus, errorIndex);            } else {                /* Display the resulting variable bindings.*/				UINT i;                char *string = NULL;                for(i=0; i < variableBindings.len; i++)                    {                    SnmpMgrOidToStr(&variableBindings.list[i].name, &string);                    php3_printf("Variable = %s\n", string);                    if (string) SNMP_free(string);                    php3_printf("Value    = ");                    SnmpUtilPrintAsnAny(&variableBindings.list[i].value);                    php3_printf("\n");                    } /* end for() */                }            }        /* Free the variable bindings that have been allocated.*/        SnmpUtilVarBindListFree(&variableBindings);        }    else if (operation == WALK)        {        /* Walk is a common term used to indicate that all MIB variables           under a given OID are to be traversed and displayed.  This is           a more complex operation requiring tests and looping in addition           to the steps for get/getnext above. */        AsnObjectIdentifier root;        AsnObjectIdentifier tempOid;        SnmpUtilOidCpy(&root, &variableBindings.list[0].name);        requestType = ASN_RFC1157_GETNEXTREQUEST;        while(1)            {            if (!SnmpMgrRequest(session, requestType, &variableBindings,                                &errorStatus, &errorIndex)){                /* The API is indicating an error.*/                php3_error(E_WARNING,"error on SnmpMgrRequest %d\n", GetLastError());                break;                }            else                {                /* The API succeeded, errors may be indicated from the remote                   agent.                   Test for end of subtree or end of MIB. */                if (errorStatus == SNMP_ERRORSTATUS_NOSUCHNAME ||                    SnmpUtilOidNCmp(&variableBindings.list[0].name,                                    &root, root.idLength))                    {                    PUTS("End of MIB subtree.\n\n");                    break;                    }                /* Test for general error conditions or sucesss. */                if (errorStatus > 0){                    php3_error(E_ERROR,"Error: errorStatus=%d, errorIndex=%d \n",                           errorStatus, errorIndex);                    break;                    }                else                    {                    /* Display resulting variable binding for this iteration. */                    char *string = NULL;                    SnmpMgrOidToStr(&variableBindings.list[0].name, &string);                    php3_printf("Variable = %s\n", string);                    if (string) SNMP_free(string);                    php3_printf("Value    = ");                    SnmpUtilPrintAsnAny(&variableBindings.list[0].value);                    php3_printf("\n");                    }                } /* end if () */            /* Prepare for the next iteration.  Make sure returned oid is               preserved and the returned value is freed.			*/            SnmpUtilOidCpy(&tempOid, &variableBindings.list[0].name);            SnmpUtilVarBindFree(&variableBindings.list[0]);            SnmpUtilOidCpy(&variableBindings.list[0].name, &tempOid);            variableBindings.list[0].value.asnType = ASN_NULL;            SnmpUtilOidFree(&tempOid);            } /* end while() */        /* Free the variable bindings that have been allocated.*/        SnmpUtilVarBindListFree(&variableBindings);        SnmpUtilOidFree(&root);	} // end if (operation)	/* Close SNMP session with the remote agent.*/	if (!SnmpMgrClose(session)){		php3_error(E_WARNING,"error on SnmpMgrClose %d\n", GetLastError());	}}DLEXPORT void php3_snmpget(INTERNAL_FUNCTION_PARAMETERS) {	_php3_snmp(INTERNAL_FUNCTION_PARAM_PASSTHRU,1);}DLEXPORT void php3_snmpwalk(INTERNAL_FUNCTION_PARAMETERS) {	_php3_snmp(INTERNAL_FUNCTION_PARAM_PASSTHRU,2);}#endif/* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲狠狠丁香婷婷综合久久久| 精品一区二区三区在线播放 | 在线国产亚洲欧美| 欧美不卡视频一区| 夜夜嗨av一区二区三区四季av | a级精品国产片在线观看| 欧美日韩亚洲高清一区二区| 国产精品素人视频| 激情久久五月天| 在线不卡中文字幕| 亚洲人成亚洲人成在线观看图片| 国产最新精品免费| 日韩欧美一区电影| 日韩av中文在线观看| 欧美日韩一区二区在线观看视频| 亚洲少妇最新在线视频| 国产成人三级在线观看| 26uuu精品一区二区三区四区在线| 亚洲成人先锋电影| 欧美日韩中文字幕精品| 一区二区视频在线| 91视频精品在这里| 亚洲精选视频免费看| www.久久久久久久久| 国产欧美精品一区aⅴ影院 | 亚洲国产电影在线观看| 国产一区二区91| 精品免费一区二区三区| 久久国产夜色精品鲁鲁99| 宅男噜噜噜66一区二区66| 午夜精品成人在线| 日韩网站在线看片你懂的| 日韩av网站免费在线| 欧美精品电影在线播放| 日本vs亚洲vs韩国一区三区二区 | 日本韩国精品在线| 一个色在线综合| 欧美三级韩国三级日本一级| 亚洲电影第三页| 在线91免费看| 国产在线观看免费一区| 久久综合成人精品亚洲另类欧美 | 欧美日韩一区二区三区四区五区 | 精品国产欧美一区二区| 欧美aⅴ一区二区三区视频| 欧美一级电影网站| 国产乱码精品一品二品| 国产清纯美女被跳蛋高潮一区二区久久w | 国产制服丝袜一区| 国产精品三级av在线播放| 97se亚洲国产综合在线| 亚洲在线成人精品| 日韩一级大片在线| 欧美日韩一级二级| 五月婷婷久久综合| 日韩欧美精品三级| 播五月开心婷婷综合| 亚洲小少妇裸体bbw| 日韩女优制服丝袜电影| 国产成人一级电影| 亚洲综合在线免费观看| 欧美大肚乱孕交hd孕妇| 波多野结衣精品在线| 天天av天天翘天天综合网色鬼国产 | 国产精品人妖ts系列视频| 91官网在线观看| 精品在线免费视频| 亚洲女人小视频在线观看| 欧美一区二区视频在线观看 | 欧美一区二区三区男人的天堂| 国内精品写真在线观看| 亚洲乱码国产乱码精品精的特点 | 精品视频一区 二区 三区| 久久国产免费看| 亚洲男人的天堂在线观看| 精品国产一区二区三区久久影院| 日韩欧美一区二区视频| 亚洲一区二区三区精品在线| 精品精品国产高清一毛片一天堂| 99天天综合性| 久久国产视频网| 日韩国产欧美在线观看| 国产精品不卡一区二区三区| 91精品国产福利在线观看 | 欧洲在线/亚洲| 国产剧情一区二区| 日日摸夜夜添夜夜添精品视频| 一色屋精品亚洲香蕉网站| 精品成人一区二区| 717成人午夜免费福利电影| av成人动漫在线观看| 国产一区二区免费在线| 日韩精品免费视频人成| 亚洲精品精品亚洲| 亚洲特黄一级片| 中文在线一区二区| 久久蜜桃香蕉精品一区二区三区| 欧美福利一区二区| 欧美日韩中文字幕精品| 色欧美88888久久久久久影院| 国产成人夜色高潮福利影视| 美腿丝袜亚洲三区| 日本少妇一区二区| 丝袜诱惑亚洲看片| 天天综合日日夜夜精品| 亚洲丝袜精品丝袜在线| 国产精品美女www爽爽爽| 久久综合九色综合欧美亚洲| 日韩欧美123| 久久综合九色综合久久久精品综合| 欧美一区二区三区爱爱| 在线不卡免费av| 91.xcao| 日韩一区二区三区高清免费看看 | 国产三级精品三级| 国产欧美日韩中文久久| 久久久久久久久99精品| 一区二区三区四区高清精品免费观看 | 中文字幕制服丝袜成人av| 国产亚洲精品aa午夜观看| 久久久一区二区三区捆绑**| 久久综合九色综合欧美98| 久久久精品国产免大香伊| 国产午夜精品一区二区| 亚洲国产精品国自产拍av| 国产日韩欧美在线一区| 国产精品青草久久| 亚洲欧美偷拍另类a∨色屁股| 夜夜嗨av一区二区三区| 午夜久久电影网| 久久超碰97人人做人人爱| 韩国v欧美v亚洲v日本v| 成人综合婷婷国产精品久久蜜臀| 99久久久国产精品| 欧美日韩另类一区| 日韩欧美国产系列| 中文av一区特黄| 一区二区三区国产精华| 午夜欧美一区二区三区在线播放| 免费不卡在线视频| 成人爽a毛片一区二区免费| 99久久精品免费看国产| 欧美精品国产精品| 中文一区二区在线观看| 亚洲国产欧美一区二区三区丁香婷| 日av在线不卡| 不卡电影一区二区三区| 欧美日韩精品欧美日韩精品一综合| 日韩欧美专区在线| 综合久久久久久| 免费在线一区观看| 99久久精品免费| 91精品国产欧美一区二区18| 国产精品色婷婷| 蜜桃精品在线观看| 色偷偷88欧美精品久久久| 日韩一区二区三区在线观看| 国产精品沙发午睡系列990531| 五月天激情小说综合| 国产成人综合亚洲网站| 欧美日韩一区二区三区视频| 久久九九久精品国产免费直播| 一区二区三区视频在线看| 激情都市一区二区| 在线播放/欧美激情| 久久爱www久久做| 欧美日韩一区二区三区四区| 欧美国产日韩在线观看| 捆绑紧缚一区二区三区视频| 91国偷自产一区二区三区成为亚洲经典| 欧美大度的电影原声| 亚洲国产中文字幕在线视频综合| 国产二区国产一区在线观看| 91精品免费观看| 亚洲一卡二卡三卡四卡五卡| 国产成人自拍高清视频在线免费播放| 欧美日韩精品系列| 亚洲精品美国一| 不卡av免费在线观看| 久久青草欧美一区二区三区| 日本女人一区二区三区| 欧洲一区二区av| 亚洲男人天堂av网| 成人网页在线观看| 国产精品全国免费观看高清| 国产在线观看免费一区| 欧美刺激午夜性久久久久久久| 亚欧色一区w666天堂| 日本大香伊一区二区三区| 中文字幕亚洲一区二区av在线| 风间由美一区二区av101 | 精品1区2区在线观看| 日韩国产精品久久| 欧美一区欧美二区| 青青草国产精品97视觉盛宴| 欧美丰满嫩嫩电影| 蜜臀91精品一区二区三区| 欧美一级淫片007| 狠狠色丁香久久婷婷综| 久久久久99精品国产片|