C# Class SnmpSharpNet.V2Error

Base class for SNMP version 2 error types.
For details see NoSuchInstance, NoSuchObject and EndOfMibView.
Inheritance: AsnType, ICloneable
Exibir arquivo Open project: griffina/SnmpSharpNet Class Usage Examples

Public Methods

Method Description
Clone ( ) : Object

Returns a duplicate of the object.

V2Error ( ) : System

Constructor

V2Error ( V2Error second ) : System

Constructor.

Since this class doesn't hold any meaningful information, constructor does nothing with the argument.

decode ( byte buffer, int offset ) : int

Decode BER encoded SNMP version 2 error.

encode ( MutableByte buffer ) : void

BER encode SNMP version 2 error.

Method Details

Clone() public method

Returns a duplicate of the object.
public Clone ( ) : Object
return Object

V2Error() public method

Constructor
public V2Error ( ) : System
return System

V2Error() public method

Constructor.
Since this class doesn't hold any meaningful information, constructor does nothing with the argument.
public V2Error ( V2Error second ) : System
second V2Error Second object
return System

decode() public method

Decode BER encoded SNMP version 2 error.
public decode ( byte buffer, int offset ) : int
buffer byte BER encoded buffer
offset int Offset within the buffer to start decoding the value from. This argument will /// receive the new offset to the byte immediately following the decoded value.
return int

encode() public method

BER encode SNMP version 2 error.
public encode ( MutableByte buffer ) : void
buffer MutableByte Buffer to append encoded value to the end of
return void