tarinc.h
资源名称:hp_snmp3.zip [点击查看]
上传用户:czjinwang
上传日期:2007-01-12
资源大小:2484k
文件大小:2k
源码类别:
SNMP编程
开发平台:
Visual C++
- /*============================================================================
- 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