Class: SNMP::PDU

Class | SNMP::PDU
In: | lib/snmp/pdu.rb
Parent: | Object

### Methods

decode each_varbind encode_pdu error_status error_status= new

### Constants

ERROR_STATUS_NAME | = | { 0 => :noError, 1 => :tooBig, 2 => :noSuchName, 3 => :badValue, 4 => :readOnly, 5 => :genErr, 6 => :noAccess, 7 => :wrongType, 8 => :wrongLength, 9 => :wrongEncoding, 10 => :wrongValue, 11 => :noCreation, 12 => :inconsistentValue, 13 => :resourceUnavailable, 14 => :commitFailed, 15 => :undoFailed, 16 => :authorizationError, 17 => :notWritable, 18 => :inconsistentName
ERROR_STATUS_CODE | = | ERROR_STATUS_NAME.invert

### External Aliases

varbind_list | -> | vb_list

### Attributes

error_index | [RW] |
request_id | [RW] |
varbind_list | [RW] |

### Public Class methods

decode(pdu_class, pdu_data)
new(request_id, varbind_list, error_status=0, error_index=0)

### Public Instance methods

each_varbind(&block)
encode_pdu(pdu_tag)
error_status()
error_status=(status)

[Validate]