SNMP version 1 TRAP Protocol Data Unit class. Use it to encode/decode SNMPv1 trap
PDUs and allow access to trap values.
This is a unique PDU type and is replaced by the standard PDU layout in version 2 (no special
PDU for traps).
Namespace:
SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class TrapPdu : AsnType, ICloneable
Public Class TrapPdu _ Inherits AsnType _ Implements ICloneable
public ref class TrapPdu : public AsnType, ICloneable
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| TrapPdu()()() | Constructor | |
| TrapPdu(TrapPdu) | Constructs a new trap pdu that is identical to the
passed pdu.
| |
| AgentAddress | Get remote agent's IP address. | |
| Clone()()() |
Clone object
(Overrides AsnType..::.Clone()()().) | |
| Count | Returns the number oid/value pairs in the variable binding contained in the PDU | |
| decode(array<Byte>[]()[], Int32) | Decode BER encoded SNMP version 1 trap packet (Overrides AsnType..::.decode(array<Byte>[]()[], Int32).) | |
| encode(MutableByte) | ASN.1 encode SNMP version 1 trap (Overrides AsnType..::.encode(MutableByte).) | |
| Enterprise | Get/SET trap enterprise identifier | |
| Equals(Object) | (Inherited from Object.) | |
| Generic | Get generic code trap value object | |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Set(AsnType) |
Initialize the class with values from another TrapPdu class.
| |
| Set(String) |
Not implemented. Throws NotImplementedException.
| |
| Specific | Get specific code trap value object | |
| TimeStamp | Get timeticks trap value object | |
| ToString()()() | (Inherited from Object.) | |
| Type |
Return ASN.1 type of the object stored in this or derived class.
(Inherited from AsnType.) | |
| VbCount |
Return number of entries in the VbList
| |
| VbList |
Get VbCollection variable binding list.
|