The AsnAny structure contains an SNMP variable type and value. This structure is a member of the RFC1157VarBind structure that is used as a parameter in many of the SNMP functions.
typedef struct {
BYTE asnType;
union {
// RFC 1155 SimpleSyntax (subset of ISO ASN.1)
AsnInteger number;
AsnOctetString string;
AsnObjectIdentifier object;
// ISO ASN.1
AsnSequence sequence;
// RFC 1155 ApplicationSyntax
AsnIPAddress address;
AsnCounter counter;
AsnGauge gauge;
AsnTimeticks ticks;
AsnOpaque arbitrary;
} asnValue;
} AsnAny;
Value |
Meaning |
Printed as |
ASN_INTEGER |
Indicates an integer variable. |
%ld(long) |
ASN_OCTETSTRING |
Indicates an octet string variable. |
putchar <oct> |
ASN_OBJECTIDENTIFIER |
Indicates an object identifier variable. |
.1.2.3.4 |
ASN_SEQUENCE |
Indicates an ASN sequence variable. |
ASN_OCTET STRING |
ASN_RFC1155_IPADDRESS |
Indicates an IP address variable. |
157.578.160 |
ASN_RFC1155_COUNTER |
Indicates a counter variable. |
%lu (unsigned log) |
ASN_RFC1155_GAUGE |
Indicates a gauge variable. |
%lu (unsigned log) |
ASN_RFC1155_TIMETICKS |
Indicates a timeticks variable. |
%lu (unsigned log) |
ASN_RFC1155_OPAQUE |
Indicates an opaque variable. |
0x5 ox3 ox |
ASN_RFC1213_DISPSTRING |
Indicates a display string variable. |
ASN_OCTET STRING |
Value |
Meaning |
number |
Accesses an integer variable |
string |
Accesses an octet string variable |
object |
Accesses an object identifier variable |
sequence |
Accesses an ASN sequence variable |
address |
Accesses an IP address variable |
counter |
Accesses a counter variable |
gauge |
Accesses a gauge variable |
ticks |
Accesses a timeticks variable |
arbitrary |
Accesses an opaque variable |
For more information, see RFC 1155.
See:
file: /Techref/os/win/api/win32/struc/src/str00_26.htm, 6KB, , updated: 2001/6/26 09:42, local time: 2024/11/3 08:19,
3.233.242.216:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/os/win/api/win32/struc/src/str00_26.htm"> AsnAny</A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.