C# Класс Tx.Network.Snmp.SnmpEncodeDecoder

Class to Encode\Decode SNMP data
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
NextValueLength ( this bytes, int offset, int classValidations, int constructValidations, int typeValidations, int &length ) : int

Nexts the length of the value.

Описание методов

ToSnmpDatagram() публичный статический Метод

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.
Результат SnmpDatagram

ToSnmpEncodedByteArray() публичный статический Метод

To Asn.1/Snmp Encoded byte array.
snmpPacket
public static ToSnmpEncodedByteArray ( this snmpPacket ) : byte[]
snmpPacket this The SNMP packet.
Результат byte[]