?? snmp.h
字號:
// Snmp.h: interface for the CSnmp class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SNMP_H__566B1232_FD51_47D7_858D_68141D4F2F0F__INCLUDED_)
#define AFX_SNMP_H__566B1232_FD51_47D7_858D_68141D4F2F0F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "winsnmp.h"
#include "snmp.h"
#include "stdafx.h"
class CSnmp
{
public:
CSnmp();
virtual ~CSnmp();
private:
smiLPUINT32 nMajorVersion;
smiLPUINT32 nMinorVersion;
smiLPUINT32 nlevel;
smiLPUINT32 nTranslateMode;
smiLPUINT32 nRetransmitMode;
HSNMP_SESSION session;
HSNMP_PDU m_hpdu;
HSNMP_VBL m_hvbl;
public:
int nCount;
BOOL sessionID;
public:
CreateSession(HWND hWnd, UINT wMsg);
Send(LPCSTR address, const char* community/*,HSNMP_PDU pdu*/);
CreatePdu(smiINT PDU_type, // PDU type
smiINT32 request_id, // PDU request identifier
smiINT error_status, // PDU error status, unless type is SNMP_PDU_GETBULK
smiINT error_index // PDU error index, unless type is SNMP_PDU_GETBULK
//HSNMP_VBL varbindlist // handle to the variable bindings list
);
CreateVbl(LPCSTR name, smiLPVALUE pvalue);
Register();
Receive(LPTSTR *name, smiLPVALUE *value);
SetVbl(LPCSTR name);
};
#endif // !defined(AFX_SNMP_H__566B1232_FD51_47D7_858D_68141D4F2F0F__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -