Class: PacketGen::Header::SCTP::UnresolvableAddressError
- Inherits:
-
Object
- Object
- PacketGen::Header::SCTP::UnresolvableAddressError
- Includes:
- ErrorMixin
- Defined in:
- lib/packetgen/header/sctp/error.rb
Overview
Out of ressource error. Indicates that the sender is out of resource.
Instance Method Summary collapse
- #to_human ⇒ ::String
-
#value=(val) ⇒ ParameterMixin
Set
value
by accepting ParameterMixin classes.
Methods included from ErrorMixin
Methods included from Padded32
Instance Method Details
#to_human ⇒ ::String
199 200 201 |
# File 'lib/packetgen/header/sctp/error.rb', line 199 def to_human "<#{error_name}: #{self[:value].to_human}>" end |
#value=(val) ⇒ ParameterMixin
Set value
by accepting ParameterMixin classes.
188 189 190 191 192 193 194 195 196 |
# File 'lib/packetgen/header/sctp/error.rb', line 188 def value=(val) if val.is_a?(ParameterMixin) self[:value] = val calc_length val else super end end |