SNMP version 1 TRAP packet class. Available packet classes are: This class is provided to simplify encoding and decoding of packets and to provide consistent interface for users who wish to handle transport part of protocol on their own without using the UdpTarget class. SnmpPacket and derived classes have been developed to implement SNMP packet support. For SNMP version 1 and 2 packet, SnmpV1Packet and SnmpV2Packet classes provides sufficient support for encoding and decoding data to/from BER buffers to satisfy requirements of most applications. SNMP version 3 on the other hand requires a lot more information to be passed to the encoder method and returned by the decode method. Attempt of implementing SNMP version 3 as part of SnmpV3Packet class was operational but required too many function arguments to operate so a different interface was developed using dedicated SnmpV3Packet class.

Namespace:  SnmpSharpNet
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  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
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)
Determines whether the specified Object is equal to the current 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()()()
Returns a String that represents the current Object.
(Inherited from Object.)
TrapPdu
Get TrapPdu
Version
SNMP Protocol version
(Inherited from SnmpPacket.)

Inheritance Hierarchy

System..::.Object
  SnmpSharpNet..::.SnmpPacket
    SnmpSharpNet..::.SnmpV1TrapPacket

See Also