next up previous contents
Next: SNMP Communication classes Up: Technical Overview over the Previous: Technical Overview over the

SNMP Variable classes

The ancestor of all SNMP variable classes is an abstract class called SnmpVar. This class contains abstract methods for printing, ASN encoding, ASN decoding, etc.

The SnmpVar class has five direct sub-classes. They are:

SnmpInt
This class is used to represent SNMP Integer syntax variables.
SnmpNull
This class is used to represent SNMP Null variables.
SnmpOID
The SNMP Object Identifier variable class. In addition to the usual SNMP variable class methods, this class has special constructors and methods to help interface to the MIB related classes described below.
SnmpString
Used for SNMP Octet Strings.
The following two classes are subclasses of SnmpString:
SnmpOpaque
Used for SNMP Opaque variable types.
SnmpIpAddress
Used for SNMP IpAddress variable types.
SnmpUnsignedInt
This class is not used directly but is a super-class of some of the SNMP application variable types. SnmpUnsignedInt has the following sub-classes.
SnmpCounter
For SNMP Counter variable types.
SnmpGauge
For SNMP Gauge variable types.
SnmpTimeticks
For SNMP Timeticks variable types.

A variable binding is a combination of an object identifier and an SNMP variable that's commonly used in SNMP manager - agent interactions. The SnmpVarBind class is used for variables and methods needed for variable bindings. ASNTypes contains some utility functions and constants, needed in encoding and decoding SNMP variables. It is not needed for developers of applications.


next up previous contents
Next: SNMP Communication classes Up: Technical Overview over the Previous: Technical Overview over the
root
8/4/1997