Property | Type | Description | |
---|---|---|---|
_protocolVersion | Integer32 |
Method | Description | |
---|---|---|
GetProtocolVersion ( byte buffer, int bufferLength ) : int |
Get SNMP protocol version from the packet. This routine does not verify if version number is valid. Caller should verify that returned value represents a valid SNMP protocol version number.
|
|
SnmpPacket ( ) : System |
Constructor. Sets SNMP version to SNMPV1.
|
|
SnmpPacket ( SnmpVersion protocolVersion ) : System |
Constructor. Initialize SNMP version as supplied.
|
|
decode ( byte buffer, int length ) : int |
Decode SNMP packet header. This class decodes the initial sequence and SNMP protocol version number.
|
|
encode ( ) : byte[] |
Place holder for derived class implementations.
|
|
encode ( MutableByte buffer ) : void |
Wrap BER encoded SNMP information contained in the parameter MutableByte class. Information in the parameter is prepended by the SNMP version field and wrapped in a sequence header. Derived classes call this method to finalize SNMP packet encoding.
|
public static GetProtocolVersion ( byte buffer, int bufferLength ) : int | ||
buffer | byte | BER encoded SNMP packet |
bufferLength | int | Length of the BER encoded packet |
return | int |
public SnmpPacket ( SnmpVersion protocolVersion ) : System | ||
protocolVersion | SnmpVersion | Protocol version. Acceptable values are SnmpConstants.SNMPV1, /// SnmpConstants.SNMPV2 and SnmpConstants.SNMPV3 |
return | System |
public decode ( byte buffer, int length ) : int | ||
buffer | byte | BER encoded SNMP packet |
length | int | Packet length |
return | int |
public encode ( MutableByte buffer ) : void | ||
buffer | MutableByte | Buffer containing BER encoded SNMP information |
return | void |