Pdu class

An SNMP Protocol Data Unit which contains a list of Varbinds and may (when received as a response) contain error information from an snmp device

Constructors

Pdu(PduType type, int requestId, List<Varbind> varbinds, {PduError error = PduError.noError, int errorIndex = 0})
An SNMP Protocol Data Unit which contains a list of Varbinds and may (when received as a response) contain error information from an snmp device

Properties

asAsn1Sequence → ASN1Sequence
Converts the Pdu to an ASN1Sequence object
no setter
encodedBytes Uint8List
Converts the Pdu to a (transmittable) list of bytes
no setter
error PduError
The type of snmp error (if any) which occured at the target
getter/setter pair
errorIndex int
Indicates the presence (1) or lack of an error (0)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
requestId int
The unique identifier for this request
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type PduType
The type of snmp request/response for which this Pdu contains data
getter/setter pair
varbinds List<Varbind>
List of variable bindings Varbind which contain an oid and data
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromBytes(Uint8List bytes) Pdu
Parses a list of bytes into a Pdu object