Table of Contents

Class ResponsePdu

Namespace
Lextm.SharpSnmpLib
Assembly
SharpSnmpLib.dll

Response PDU.

public sealed class ResponsePdu : ISnmpPdu, ISnmpData
Inheritance
ResponsePdu
Implements
Inherited Members
Extension Methods

Constructors

ResponsePdu(int, ErrorCode, int, IList<Variable>)

Creates a ResponsePdu with all contents.

public ResponsePdu(int requestId, ErrorCode errorStatus, int errorIndex, IList<Variable> variables)

Parameters

requestId int

The request ID.

errorStatus ErrorCode

Error status.

errorIndex int

Error index.

variables IList<Variable>

Variables.

ResponsePdu(Tuple<int, byte[]>, Stream)

Initializes a new instance of the ResponsePdu class.

public ResponsePdu(Tuple<int, byte[]> length, Stream stream)

Parameters

length Tuple<int, byte[]>

The length data.

stream Stream

The stream.

Properties

ErrorIndex

Error index.

public Integer32 ErrorIndex { get; }

Property Value

Integer32

ErrorStatus

Error status.

public Integer32 ErrorStatus { get; }

Property Value

Integer32

RequestId

Gets the request ID.

public Integer32 RequestId { get; }

Property Value

Integer32

The request ID.

TypeCode

Type code.

public SnmpType TypeCode { get; }

Property Value

SnmpType

Variables

Variables.

public IList<Variable> Variables { get; }

Property Value

IList<Variable>

Methods

AppendBytesTo(Stream)

Appends the bytes to Stream.

public void AppendBytesTo(Stream stream)

Parameters

stream Stream

The stream.

ToString()

Returns a string that represents this ResponsePdu/

public override string ToString()

Returns

string