C# Class Tx.Network.Snmp.SnmpEncodeDecoder

Class to Encode\Decode SNMP data
Afficher le fichier Open project: Reactive-Extensions/Tx

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat SnmpDatagram

ToSnmpEncodedByteArray() public static méthode

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