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

📄 tarinc.h

📁 HP公司的SNMP++的Win32版本源码
💻 H
字号:
/*============================================================================
  Copyright (c) 1996
  Hewlett-Packard Company

  ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS.
  Permission to use, copy, modify, distribute and/or sell this software 
  and/or its documentation is hereby granted without fee. User agrees 
  to display the above copyright notice and this license notice in all 
  copies of the software and any documentation of the software. User 
  agrees to assume all liability for the use of the software; Hewlett-Packard 
  makes no representations about the suitability of this software for any 
  purpose. It is provided "AS-IS without warranty of any kind,either express 
  or implied. User hereby grants a royalty-free license to any and all 
  derivatives based upon this software code base. 
  
=============================================================================*/
// commonly used target definitons
//
#ifndef _TARDEFS
#define _TARDEFS

#include "db_cls.h"

// registry tags
#define BROWSER_VALUE "Default SNMP++ Target Values"
#define DB_NAME "Target DB Name"
#define READ_COMMUNITY "Read Community Name"
#define WRITE_COMMUNITY "Read/Write Community Name"
#define TIMEOUT "TimeOut"
#define RETRIES "Retries"
#define PROTOCOL "Protocol"
#define SNMPTYPE "SNMP Type"
#define ERR_MSG "SNMP++ Browser Error"

// default values
#define DEF_DB_NAME "target.db"
#define PUBLIC "public"
#define DEF_TIMEOUT 50
#define DEF_RETRIES 0
#define IP "ip"
#define IPX "ipx"
#define V1  "v1"
#define V2C "v2c"
#define IP_TYPE 1
#define IPX_TYPE 2
#define SNMPV1 1
#define SNMPV2C 2


// persistent target structure
typedef struct
{
   Key key;                        // Address as a string
   char address_type;              // ip, ipx or emulate
   char snmp_type;                 // v1 or v2c
   int  timeout;                   // # of timeout
   int  retries;                   // # of retries
   char read_community[80];        // get community name
   char write_community[80];       // set community name
   char alias[40];                 // optional user defined alias name
} TargetDb_Rec;

#endif  // _TARDEF

⌨️ 快捷键说明

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