C# Class Tx.Network.Snmp.SnmpEncodeDecoder

Class to Encode\Decode SNMP data
Show file Open project: Reactive-Extensions/Tx

Public Methods

Method Description
ToSnmpDatagram ( this byteSegment, DateTimeOffset timestamp, string sourceIpAddress ) : SnmpDatagram

Converts the Asn.1 encoded byte array to SNMP Datagram.

ToSnmpEncodedByteArray ( this snmpPacket ) : byte[]

To Asn.1/Snmp Encoded byte array.

Private Methods

Method Description
NextValueLength ( this bytes, int offset, int classValidations, int constructValidations, int typeValidations, int &length ) : int

Nexts the length of the value.

Method Details

ToSnmpDatagram() public static method

Converts the Asn.1 encoded byte array to SNMP Datagram.
bytes Snmp Version V3 not supported
public static ToSnmpDatagram ( this byteSegment, DateTimeOffset timestamp, string sourceIpAddress ) : SnmpDatagram
byteSegment this The asn.1 encoded bytes.
timestamp DateTimeOffset The timestamp when the packet has been received.
sourceIpAddress string The source IP address of the packet.
return SnmpDatagram

ToSnmpEncodedByteArray() public static method

To Asn.1/Snmp Encoded byte array.
snmpPacket
public static ToSnmpEncodedByteArray ( this snmpPacket ) : byte[]
snmpPacket this The SNMP packet.
return byte[]