SNMP version 1 packet class. Supported types are SNMP-GET, SNMP-GETNEXT, SNMP-SET and SNMP-RESPONSE.
Namespace:
SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.2.0 (0.5.2.0)
Syntax
| C# |
|---|
public class SnmpV1Packet : SnmpPacket |
| Visual Basic (Declaration) |
|---|
Public Class SnmpV1Packet _ Inherits SnmpPacket |
| Visual C++ |
|---|
public ref class SnmpV1Packet : public SnmpPacket |
Remarks
Available packet classes are:
CopyC#
Example, SNMP version 1 packet decoding:
CopyC#
- SnmpV1Packet
- SnmpV1TrapPacket
- SnmpV2Packet
- SnmpV3Packet
SnmpV1Packet packetv1 = new SnmpV1Packet(); packetv1.SnmpCommunity.Set("public"); packetv1.Pdu.Set(mypdu); byte[] berpacket = packetv1.encode();
SnmpV1Packet packetv1 = new SnmpV1Packet();
packetv1.decode(inbuffer,inlen);