class SNMP::PDU
- SNMP::PDU
- Reference
- Object
Direct Known Subclasses
Defined in:
snmp/pdu.crConstructors
- .new(ber : ASN1::BER)
- .new(request_id : Int32 = rand(2147483647), varbinds : Array(VarBind) = [] of VarBind, error_status : SNMP::ErrorStatus = ErrorStatus::NoError, error_index : SNMP::ErrorIndex = ErrorIndex::NoError)
- .new(request_id : Int32 = rand(2147483647), varbind : VarBind | Nil = nil, error_status : SNMP::ErrorStatus = ErrorStatus::NoError, error_index : SNMP::ErrorIndex = ErrorIndex::NoError)
Instance Method Summary
- #error_index : ErrorIndex
- #error_index=(error_index : ErrorIndex)
- #error_status : ErrorStatus
- #error_status=(error_status : ErrorStatus)
- #new_request_id
-
#oid
shortcut for
.varbinds[0].oid
- #request_id : Int32
- #request_id=(request_id : Int32)
- #to_ber(tag_number)
-
#value
shortcut for
.varbinds[0].value
- #varbinds : Array(VarBind)
- #varbinds=(varbinds : Array(VarBind))
Constructor Detail
def self.new(request_id : Int32 = rand(2147483647), varbinds : Array(VarBind) = [] of VarBind, error_status : SNMP::ErrorStatus = ErrorStatus::NoError, error_index : SNMP::ErrorIndex = ErrorIndex::NoError)
#
def self.new(request_id : Int32 = rand(2147483647), varbind : VarBind | Nil = nil, error_status : SNMP::ErrorStatus = ErrorStatus::NoError, error_index : SNMP::ErrorIndex = ErrorIndex::NoError)
#