please dont rip this site Prev Next

AsnAny info  Overview  Group


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;  

Members

asnType
Indicates the variable's type. This member can be only one of the following values:

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

asnValue
Contains the variable's value. This member can be only one of the following:

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 Also

RFC1157VarBind

See:

See also:


file: /Techref/os/win/api/win32/struc/src/str00_26.htm, 6KB, , updated: 2001/6/26 09:42, local time: 2012/2/10 15:43,
TOP NEW HELP FIND: 
38.107.179.231:LOG IN

 ©2012 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?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/tecHREF/os/win/api/win32/struc/src/str00_26.htm"> AsnAny</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 
Stepper motors CAN be smooth!
And stepper controllers can be strong and cheap. Roman Black's Linistep stepper controller kits:
o 18th microstep
o Linear smoothing
  o Open source
o Full kit $25!
 

Robotics nuts!

Check out http://users.frii.com/dlc/robotics/projects/botproj.htm from Dennis Clark. This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.
The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .