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

📄 mystruct.h

📁 基于单片机的 snmp协议解析的一些原代码 给有用的 同行
💻 H
字号:
#ifndef MYSTRUCT_H
#define MYSTRUCT_H

typedef struct mystruct {
    	/**# :[Description = "The type of Message being encoded.
        One of 'POLL', 'SNMP', or 'STMP'."] */
	char *pdu;
    	/**# :[Description = "The Class of Communications Service being requested.
        Currently must be 'Class B', unless it is a poll."] */
    char *classtype;
    	/**# :[Description = "The community name for the SNMP request."] */
	char *community;
	    /**# :[Description = "The ID of the request."] */
	unsigned long request_id;
    	/**# :[Description = "The drop number for the message."] */
    long AddressDrop;
	    /**# :[Description = "A flag to indicate whether or not a group address is selected."] */
    long GroupAddress;
    	/**# :[Description = "One of Get, GetNext, Set, Sync, or SetNoReply
        must be selected to indicate the type of request."] */
    long MessageGet;
    long MessageGetNext;
    long MessageSet;
    long MessageSync;
    long MessageSetNoReply;
    long EncodingDynamicObject;
	    /**# :[Description = "This variable is obsolete -- it was required to
        distinguish between root and nema encoding."] */
    long EncodingFromRoot;
	    /**# :[Description = "This indicates the number of a dynamic object."] */
    long EncodingValue;
	    /**# :[Description = "This variable is obsolete -- it was required
        to distinguish between root and nema encoding."] */
    long FromNEMA;
	    /**# :[Description = "Indicates wheather or not the user is allowed
        to edit the byte stream before sending over the wire."] */
    long StreamChecked;      // edit the byte stream
    	/**# :[Description = "Indicates the number of objects contained in the message."] */
    long SizeOfTheArray;
	    /**# :[Description = "The list of object instance names."] */
    char *arraylist [26];
    	/**# :[Description = "The list of values to which to set the objects for set requests."] */
    char *valuelist [26];
	    /**# :[Description = "The value parameters are ASCII strings.  These
        parameters indicate how to interpret each of the value parameters by
        giving the appropriate ASN.1 Syntax for the value.  The options are:
         decimal value
            2	INTEGER 	(each character must be a digit, except the first which may be a '-')
            4	OCTET STRING 	(string must consist of pairs of hexadecimal digits separated by spaces)
            6	OBJECT IDENTIFIER (string must consist of digits and periods '.')
            22	IA5String		(This is a straight interpretation of the ASCII string)"] */
    unsigned char asn1syntax [26];
} struct1;


#endif

⌨️ 快捷键说明

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