SNMP version 1 TRAP packet class.
Available packet classes are:
Namespace:
SnmpSharpNet- SnmpV1Packet
- SnmpV1TrapPacket
- SnmpV2Packet
- SnmpV3Packet
Assembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class SnmpV1TrapPacket : SnmpPacket
Public Class SnmpV1TrapPacket _ Inherits SnmpPacket
public ref class SnmpV1TrapPacket : public SnmpPacket
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| SnmpV1TrapPacket()()() |
Standard constructor.
| |
| SnmpV1TrapPacket(String) |
Standard constructor.
| |
| decode(array<Byte>[]()[], Int32) |
Decode received packet. This method overrides the base implementation that cannot be used with this type of the packet.
(Overrides SnmpPacket..::.decode(array<Byte>[]()[], Int32).) | |
| encode()()() |
Encode SNMP packet for sending.
(Overrides SnmpPacket..::.encode()()().) | |
| encode(MutableByte) |
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.
(Inherited from SnmpPacket.) | |
| Equals(Object) | (Inherited from 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.) | |
| IsNotification |
Packet is a notification
(Inherited from SnmpPacket.) | |
| IsReport |
Packet is a report
(Inherited from SnmpPacket.) | |
| IsRequest |
Packet is a request
(Inherited from SnmpPacket.) | |
| IsResponse |
Packet is a response
(Inherited from SnmpPacket.) | |
| Pdu |
Access to the packet TrapPdu.
| |
| SnmpCommunity |
Get SNMP community value used by SNMP version 1 and version 2 protocols.
| |
| ToString()()() | (Inherited from Object.) | |
| TrapPdu |
Get TrapPdu
| |
| Version |
SNMP Protocol version
(Inherited from SnmpPacket.) |